31 static const char *
classes[] = {
"VerseTreeKey",
"VerseKey",
"SWKey",
"SWObject", 0};
139 if (
error && !treeError) {
140 int saveError =
error;
167 if (
error && !treeError) {
168 int saveError =
error;
199 }
while (tkey->
parent() && (legs < 4));
203 if ((legs < 2) && (!seg[0].
length() || seg[0] ==
"/")) {
210 && ((!strncmp(seg[0].c_str(),
"[ Testament ", 12)) &&
211 (isdigit(seg[0][12])) &&
212 (!strcmp(seg[0].c_str()+13,
" Heading ]")))) {
220 chapter = (legs > 0) ? atoi(seg[--legs]) : 0;
221 setVerse((legs > 0) ? atoi(seg[--legs]) : 0);
virtual bool isBoundSet() const
virtual void setPosition(SW_POSITION p)=0
#define SWORD_NAMESPACE_START
virtual unsigned long getOffset() const =0
VerseTreeKey(TreeKey *treeKey, const char *ikey=0)
unsigned long length() const
virtual void positionChanged()
virtual void setPosition(SW_POSITION newpos)
virtual void setPosition(SW_POSITION newpos)
virtual void setOffset(unsigned long offset)=0
virtual SWKey * clone() const
static SWLog * getSystemLog()
virtual void setBookName(const char *bname)
void setPositionChangeListener(PositionChangeListener *pcl)
virtual const char * getLocalName()=0
VerseKey & getLowerBound() const
virtual void increment(int steps=1)=0
virtual void decrement(int steps=1)
virtual void positionFrom(const SWKey &ikey)
static SWORD_NAMESPACE_START const char * classes[]
static const SWClass classdef(classes)
virtual SWKey * clone() const
virtual int _compare(const VerseKey &ikey)
virtual char getSuffix() const
virtual int getChapter() const
virtual char parse(bool checkNormalize=true)
virtual int getBookFromAbbrev(const char *abbr) const
virtual void setVerse(int iverse)
virtual char getBook() const
virtual int getVerse() const
virtual TreeKey * getTreeKey()
virtual void increment(int steps=1)
VerseKey & getUpperBound() const
virtual void decrement(int steps=1)=0
#define KEYERR_OUTOFBOUNDS
virtual void setText(const char *ikey)=0
virtual long newIndex() const
virtual int getBookFromAbbrev(const char *abbr) const
void syncVerseToTree() const
virtual void setError(char err)
#define SWORD_NAMESPACE_END
SWBuf & setFormatted(const char *format,...)
virtual const char * getOSISBookName() const
virtual void Normalize(char autocheck=0)
virtual char getTestament() const