47 zCom::zCom(
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) :
zVerse(ipath, -1, iblockType, icomp),
SWCom(iname, idesc, idisp, enc, dir, mark, ilang, versification)
78 unsigned short size = 0;
79 unsigned long buffnum = 0;
166 unsigned long buffnum;
171 SWKey lastgood = *tmpkey;
173 long laststart = start;
174 unsigned short 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 doSetText(char testmt, long idxoff, const char *buf, long len=0)
virtual void deleteEntry()
#define SWORD_NAMESPACE_START
virtual SWKey * clone() const
const VerseKey & getVerseKeyConst(const SWKey *key=0) const
static void prepText(SWBuf &buf)
virtual void rawFilter(SWBuf &buf, const SWKey *key) const
virtual bool hasEntry(const SWKey *k) const
virtual void increment(int steps=1)
bool sameBlock(VerseKey *lastWriteKey, VerseKey *key)
void zReadText(char testmt, long start, unsigned short size, unsigned long buffnum, SWBuf &buf) const
virtual int getChapter() const
zCom(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 findOffset(char testmt, long idxoff, long *start, unsigned short *size, unsigned long *buffnum) const
virtual void setEntry(const char *inbuf, long len=-1)
virtual char getBook() const
bool skipConsecutiveLinks
virtual int getVerse() const
virtual bool isLinked(const SWKey *k1, const SWKey *k2) const
#define KEYERR_OUTOFBOUNDS
virtual void linkEntry(const SWKey *linkKey)
virtual SWBuf & getRawEntryBuf() const
virtual long getTestamentIndex() const
#define SWORD_NAMESPACE_END
void doLinkEntry(char testmt, long destidxoff, long srcidxoff)
virtual bool isWritable() const
VerseKey & getVerseKey(SWKey *key=0)
virtual char getTestament() const