47 zCom4::zCom4(
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) :
zVerse4(ipath, -1, iblockType, icomp),
SWCom(iname, idesc, idisp, enc, dir, mark, ilang, versification)
78 unsigned long size = 0;
79 unsigned long buffnum = 0;
166 unsigned long buffnum;
171 SWKey lastgood = *tmpkey;
173 long laststart = start;
174 unsigned long lastsize =
size;
175 SWKey lasttry = *tmpkey;
176 (steps > 0) ? ++(*
key) : --(*key);
186 (((laststart != start) || (lastsize != size))
190 steps += (steps < 0) ? 1 : -1;
200 unsigned long buffnum1, buffnum2;
207 return start1 == start2 && buffnum1 == buffnum2;
213 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
const VerseKey & getVerseKeyConst(const SWKey *key=0) const
zCom4(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")
static void prepText(SWBuf &buf)
virtual void rawFilter(SWBuf &buf, const SWKey *key) const
virtual bool hasEntry(const SWKey *k) const
virtual void linkEntry(const SWKey *linkKey)
void doSetText(char testmt, long idxoff, const char *buf, long len=0)
virtual bool isLinked(const SWKey *k1, const SWKey *k2) const
void doLinkEntry(char testmt, long destidxoff, long srcidxoff)
bool sameBlock(VerseKey *lastWriteKey, VerseKey *key)
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 increment(int steps=1)
virtual SWBuf & getRawEntryBuf() const
#define KEYERR_OUTOFBOUNDS
virtual long getTestamentIndex() const
#define SWORD_NAMESPACE_END
virtual bool isWritable() const
virtual void deleteEntry()
VerseKey & getVerseKey(SWKey *key=0)
virtual void setEntry(const char *inbuf, long len=-1)
virtual char getTestament() const