46 zText4::zText4(
const char *ipath,
const char *iname,
const char *idesc,
int iblockType,
SWCompress *icomp,
SWDisplay *idisp,
SWTextEncoding enc,
SWTextDirection dir,
SWTextMarkup mark,
const char *ilang,
const char *versification)
47 :
zVerse4(ipath,
FileMgr::RDWR, iblockType, icomp),
SWText(iname, idesc, idisp, enc, dir, mark, ilang, versification) {
78 unsigned long size = 0;
79 unsigned long buffnum = 0;
163 unsigned long buffnum;
168 SWKey lastgood = *tmpkey;
170 long laststart = start;
171 unsigned long lastsize =
size;
172 SWKey lasttry = *tmpkey;
173 (steps > 0) ? ++(*
key) : --(*key);
185 ((laststart != start) || (lastsize != size))
191 steps += (steps < 0) ? 1 : -1;
202 unsigned long buffnum1, buffnum2;
209 return start1 == start2 && buffnum1 == buffnum2;
215 unsigned long buffnum;
void findOffset(char testmt, long idxoff, long *start, unsigned long *size, unsigned long *buffnum) const
#define SWORD_NAMESPACE_START
virtual SWKey * clone() const
static void prepText(SWBuf &buf)
virtual void rawFilter(SWBuf &buf, const SWKey *key) const
void doSetText(char testmt, long idxoff, const char *buf, long len=0)
zText4(const char *ipath, const char *iname=0, const char *idesc=0, int blockType=CHAPTERBLOCKS, SWCompress *icomp=0, SWDisplay *idisp=0, SWTextEncoding encoding=ENC_UNKNOWN, SWTextDirection dir=DIRECTION_LTR, SWTextMarkup markup=FMT_UNKNOWN, const char *ilang=0, const char *versification="KJV")
void doLinkEntry(char testmt, long destidxoff, long srcidxoff)
virtual SWBuf & getRawEntryBuf() const
const VerseKey & getVerseKeyConst(const SWKey *key=0) const
virtual int getChapter() const
void zReadText(char testmt, long start, unsigned long size, unsigned long buffnum, SWBuf &buf) const
virtual char getBook() const
bool skipConsecutiveLinks
virtual int getVerse() const
virtual void setEntry(const char *inbuf, long len=-1)
#define KEYERR_OUTOFBOUNDS
const VerseKey & getVerseKey(const SWKey *key=0) const
virtual bool isWritable() const
virtual bool hasEntry(const SWKey *k) const
virtual long getTestamentIndex() const
virtual bool isLinked(const SWKey *k1, const SWKey *k2) const
virtual void linkEntry(const SWKey *linkKey)
bool sameBlock(VerseKey *lastWriteKey, VerseKey *key)
#define SWORD_NAMESPACE_END
virtual void deleteEntry()
virtual void increment(int steps=1)
virtual char getTestament() const