103 for (loop1 = 0; loop1 < 2; loop1++) {
122 testmt = ((
idxfp[1]) ? 1:2);
124 if (
idxfp[testmt-1]->getFd() >= 0) {
129 long len =
idxfp[testmt-1]->
read(&tmpSize, 4);
135 *size = (
unsigned long)((*start) ? (
textfp[testmt-1]->
seek(0,
SEEK_END) - (long)*start) : 0);
160 testmt = ((
idxfp[1]) ? 1:2);
162 if (
textfp[testmt-1]->getFd() >= 0) {
186 testmt = ((
idxfp[1]) ? 1:2);
188 size = (
SW_u32)((len < 0) ? strlen(buf) : len);
228 testmt = ((
idxfp[1]) ? 1:2);
252 char *buf =
new char [ strlen (ipath) + 20 ];
257 if ((path[strlen(path)-1] ==
'/') || (path[strlen(path)-1] ==
'\\'))
258 path[strlen(path)-1] = 0;
260 sprintf(buf,
"%s/ot", path);
266 sprintf(buf,
"%s/nt", path);
272 sprintf(buf,
"%s/ot.vss", path);
277 sprintf(buf,
"%s/nt.vss", path);
292 fd->
write(&offset, 4);
296 fd2->
write(&offset, 4);
297 fd2->
write(&size, 4);
300 fd2->
write(&offset, 4);
301 fd2->
write(&size, 4);
void setFillByte(char ch)
#define SWORD_NAMESPACE_START
long seek(long offset, int whence)
void doSetText(char testmt, long idxoff, const char *buf, long len=-1)
FileDesc * open(const char *path, int mode, bool tryDowngrade)
static char createModule(const char *path, const char *v11n="KJV")
void doLinkEntry(char testmt, long destidxoff, long srcidxoff)
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)
RawVerse4(const char *ipath, int fileMode=-1)
void readText(char testmt, long start, unsigned long size, SWBuf &buf) const
static unsigned int CREAT
static unsigned int IWRITE
static unsigned int WRONLY
long read(void *buf, long count)
static unsigned int IREAD
#define SWORD_NAMESPACE_END
SWBuf & setFormatted(const char *format,...)
void findOffset(char testmt, long idxoff, long *start, unsigned long *end) const
void setSize(unsigned long len)
virtual char getTestament() const
static FileMgr * getSystemFileMgr()