39 #define POS_MAXVERSE ((char)3)
40 #define POS_MAXCHAPTER ((char)4)
41 #define POS_MAXBOOK ((char)5)
43 #define MAXVERSE SW_POSITION(POS_MAXVERSE)
44 #define MAXCHAPTER SW_POSITION(POS_MAXCHAPTER)
45 #define MAXBOOK SW_POSITION(POS_MAXBOOK)
76 void initBounds()
const;
79 void setFromOther(
const VerseKey &vk);
108 virtual int getBookFromAbbrev(
const char *abbr)
const;
114 void freshtext()
const;
118 virtual char parse(
bool checkNormalize =
true);
144 VerseKey(
const char *min,
const char *max,
const char *
v11n =
"KJV");
169 void setLowerBound(
const VerseKey &lb);
178 void setUpperBound(
const VerseKey &ub);
218 virtual const char *
getText()
const;
253 virtual const char *getBookName()
const;
254 virtual void setBookName(
const char *bname);
256 virtual const char *getBookAbbrev()
const;
261 virtual char getTestament()
const;
272 virtual char getBook()
const;
283 virtual int getChapter()
const;
288 virtual int getChapterMax()
const;
294 virtual int getVerse()
const;
299 virtual int getVerseMax()
const;
305 virtual char getSuffix()
const;
311 virtual void setTestament(
char itestament);
315 SWDEPRECATED char Testament(
char itestament) {
char retVal = getTestament(); setTestament(itestament);
return retVal; }
321 virtual void setBook(
char ibook);
325 SWDEPRECATED char Book(
char ibook) {
char retVal = getBook(); setBook(ibook);
return retVal; }
331 virtual void setChapter(
int ichapter);
335 SWDEPRECATED int Chapter(
int ichapter) {
char retVal = getChapter(); setChapter(ichapter);
return retVal; }
341 virtual void setVerse(
int iverse);
345 SWDEPRECATED int Verse(
int iverse) {
char retVal = getVerse(); setVerse(iverse);
return retVal; }
351 virtual void setSuffix(
char isuffix);
358 virtual void normalize(
bool autocheck =
false);
369 virtual void setAutoNormalize(
bool iautonorm);
370 virtual bool isAutoNormalize()
const;
396 virtual void setIntros(
bool val);
397 virtual bool isIntros()
const;
418 virtual long getTestamentIndex()
const;
425 virtual const char *getOSISRef()
const;
426 virtual const char *getOSISBookName()
const;
432 static const char *convertToOSIS(
const char *inRef,
const SWKey *defaultKey);
449 virtual ListKey parseVerseList(
const char *buf,
const char *defaultKey = 0,
bool expandRange =
false,
bool useChapterAsVerse =
false);
453 SWDEPRECATED ListKey ParseVerseList(
const char *buf,
const char *defaultKey = 0,
bool expandRange =
false,
bool useChapterAsVerse =
false) {
return parseVerseList(buf, defaultKey, expandRange, useChapterAsVerse); }
473 virtual int _compare(
const VerseKey &ikey);
475 virtual void setVersificationSystem(
const char *name);
476 virtual const char *getVersificationSystem()
const;
479 void validateCurrentLocale()
const;
virtual void setText(const char *ikey)
#define SWORD_NAMESPACE_START
virtual const char * getShortRangeText() const
virtual const char * getShortText() const
virtual void decrement(int steps=1)
SWDEPRECATED void ClearBounds()
SWDEPRECATED char AutoNormalize() const
SWDEPRECATED ListKey ParseVerseList(const char *buf, const char *defaultKey=0, bool expandRange=false, bool useChapterAsVerse=false)
virtual void setIndex(long iindex)
virtual const char * getRangeText() const
virtual void increment(int steps=1)
SWDEPRECATED VerseKey & LowerBound() const
SWDEPRECATED char Book() const
const VersificationMgr::System * refSys
virtual void positionFrom(const SWKey &ikey)
SWDEPRECATED char AutoNormalize(char iautonorm)
virtual SWKey * clone() const
virtual void clearBounds() const
virtual const char * getText() const
VerseComponents upperBoundComponents
SWDEPRECATED void Normalize(char autocheck=0)
virtual void setText(const char *ikey)
SWDEPRECATED char Testament() const
virtual int compare(const SWKey &ikey)
virtual void copyFrom(const SWKey &ikey)
SWDEPRECATED char Book(char ibook)
SWDEPRECATED char Headings(char iheadings=MAXPOS(char))
SWDEPRECATED int Verse() const
virtual const char * getOSISRefRangeText() const
SWDEPRECATED long TestamentIndex() const
virtual void setPosition(SW_POSITION)
SWDEPRECATED VerseKey & UpperBound() const
SWDEPRECATED int Chapter() const
virtual bool isTraversable() const
SWDEPRECATED int Verse(int iverse)
virtual int getTestamentMax() const
SWDEPRECATED char Testament(char itestament)
SWDEPRECATED VerseKey & LowerBound(const VerseKey &lb)
virtual void setText(const char *ikey, bool checkNormalize)
SWDEPRECATED int Chapter(int ichapter)
#define SWORD_NAMESPACE_END
virtual int getBookMax() const
virtual long getIndex() const
SWDEPRECATED VerseKey & UpperBound(const VerseKey &ub)