42 SWLD::SWLD(
const char *imodname,
const char *imoddesc,
SWDisplay *idisp,
SWTextEncoding enc,
SWTextDirection dir,
SWTextMarkup mark,
const char* ilang,
bool strongsPadding) :
SWModule(imodname, imoddesc, idisp, (char *)
"Lexicons / Dictionaries", enc, dir, mark, ilang), strongsPadding(strongsPadding)
104 const char *key_str = *
key;
105 char *buf =
new char [ strlen(key_str) + 6 ];
106 strcpy(buf, key_str);
128 int len = (int)strlen(buf);
130 bool bang =
false, prefix=
false;
131 if ((len < 9) && (len > 0)) {
133 if (*buf ==
'G' || *buf ==
'H' || *buf ==
'g' || *buf ==
'h') {
139 for (check = buf; *(
check); check++) {
140 if (!isdigit(*check))
145 if (size && ((size == len) || (size == len - 1) || (size == (len-2)))) {
150 if (isalpha(*check)) {
151 subLet = toupper(*check);
152 *(check-(bang?1:0)) = 0;
154 sprintf(buf, prefix?
"%.4d":
"%.5d", atoi(buf));
156 check = buf+(strlen(buf));
#define SWORD_NAMESPACE_START
static void strongsPad(char *buf)
SWLD(const char *imodname=0, const char *imoddesc=0, SWDisplay *idisp=0, SWTextEncoding encoding=ENC_UNKNOWN, SWTextDirection dir=DIRECTION_LTR, SWTextMarkup markup=FMT_UNKNOWN, const char *ilang=0, bool strongsPadding=true)
virtual void setPosition(SW_POSITION pos)
static int check(char *buf, char *monthname)
virtual long getEntryForKey(const char *key) const =0
virtual const char * getKeyText() const
virtual SWBuf & getRawEntryBuf() const =0
virtual bool hasEntry(const SWKey *k) const
virtual char * getKeyForEntry(long entry) const =0
virtual bool isTraversable() const
#define SWORD_NAMESPACE_END
virtual SWKey * createKey() const