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