102 for (loop1 = 0; loop1 < 2; loop1++) {
121 testmt = ((
idxfp[1]) ? 1:2);
123 if (
idxfp[testmt-1]->getFd() >= 0) {
128 long len =
idxfp[testmt-1]->
read(&tmpSize, 2);
134 *size = (
unsigned short)((*start) ? (
textfp[testmt-1]->
seek(0,
SEEK_END) - (long)*start) : 0);
159 testmt = ((
idxfp[1]) ? 1:2);
161 if (
textfp[testmt-1]->getFd() >= 0) {
185 testmt = ((
idxfp[1]) ? 1:2);
187 size = (len < 0) ? strlen(buf) : len;
227 testmt = ((
idxfp[1]) ? 1:2);
251 char *buf =
new char [ strlen (ipath) + 20 ];
256 if ((path[strlen(path)-1] ==
'/') || (path[strlen(path)-1] ==
'\\'))
257 path[strlen(path)-1] = 0;
259 sprintf(buf,
"%s/ot", path);
265 sprintf(buf,
"%s/nt", path);
271 sprintf(buf,
"%s/ot.vss", path);
276 sprintf(buf,
"%s/nt.vss", path);
292 fd->
write(&offset, 4);
296 fd2->
write(&offset, 4);
297 fd2->
write(&size, 2);
300 fd2->
write(&offset, 4);
301 fd2->
write(&size, 2);
void setFillByte(char ch)
#define SWORD_NAMESPACE_START
long seek(long offset, int whence)
FileDesc * open(const char *path, int mode, bool tryDowngrade)
void findOffset(char testmt, long idxoff, long *start, unsigned short *end) const
long write(const void *buf, long count)
SWORD_NAMESPACE_START char * stdstr(char **ipstr, const char *istr, unsigned int memPadFactor=1)
void close(FileDesc *file)
virtual void setIntros(bool val)
virtual void setVersificationSystem(const char *name)
static int removeFile(const char *fName)
RawVerse(const char *ipath, int fileMode=-1)
void readText(char testmt, long start, unsigned short size, SWBuf &buf) const
static char createModule(const char *path, const char *v11n="KJV")
void doLinkEntry(char testmt, long destidxoff, long srcidxoff)
static unsigned int CREAT
static unsigned int IWRITE
static unsigned int WRONLY
long read(void *buf, long count)
static unsigned int IREAD
void doSetText(char testmt, long idxoff, const char *buf, long len=-1)
#define SWORD_NAMESPACE_END
SWBuf & setFormatted(const char *format,...)
void setSize(unsigned long len)
virtual char getTestament() const
static FileMgr * getSystemFileMgr()