37 static const char oName[] =
"Strong's Numbers";
38 static const char oTip[] =
"Toggles Strong's Numbers On and Off if they exist";
42 static const StringList oVals(&choices[0], &choices[2]);
61 const char *wordStart = 0;
64 const SWBuf orig = text;
65 const char * from = orig.
c_str();
67 for (text =
""; *from; ++from) {
110 SWBuf morphClass =
"";
111 SWBuf lemmaClass =
"";
114 sprintf(wordstr,
"%03d", wordNum);
120 int i = (count > 1) ? 0 : -1;
127 const char *
m = strchr(attrib,
':');
129 int len = (int)(m-attrib);
130 mClass.
append(attrib, len);
133 if ((mClass ==
"x-Robinsons") || (mClass ==
"x-Robinson") || (mClass ==
"Robinson")) {
136 if (i) { morphClass +=
" "; morph +=
" "; }
138 morphClass += mClass;
146 }
while (++i < count);
151 int i = (count > 1) ? 0 : -1;
159 const char *
m = strchr(attrib,
':');
161 int len = (int)(m-attrib);
162 lClass.
append(attrib, len);
165 if ((lClass ==
"x-Strongs") || (lClass ==
"strong") || (lClass ==
"Strong")) {
166 if (isdigit(attrib[0])) {
179 if (i) { lemmaClass +=
" "; lemma +=
" "; }
182 lemmaClass += lClass;
188 }
while (++i < count);
194 int i = (count > 1) ? 0 : -1;
207 }
while (++i < count);
226 for (j = (
int)token.
length()-1; ((j>0) && (strchr(
" /", token[j]))); j--);
244 for (
int i = 0; i < count; ++i) {
247 if ((prefix) && (!strcmp(prefix,
"x-Strongs") || !strcmp(prefix,
"strong") || !strcmp(prefix,
"Strong"))) {
267 tmp.
append(wordStart, (from-wordStart)-3);
268 sprintf(wordstr,
"%03d", wordNum-1);
#define SWORD_NAMESPACE_START
unsigned long length() const
const char * setAttribute(const char *attribName, const char *attribValue, int partNum=-1, char partSplit= '|')
bool startsWith(const SWBuf &prefix) const
static const StringList * oValues()
const char * c_str() const
std::list< SWBuf > StringList
SWBuf & append(const char *str, long max=-1)
static const char oName[]
#define SWDYNAMIC_CAST(className, object)
SWBuf & replaceBytes(const char *targets, char newByte)
unsigned long size() const
const char * stripPrefix(char separator, bool endOfStringAsSeparator=false)
virtual bool isProcessEntryAttributes() const
virtual AttributeTypeList & getEntryAttributes() const
static const char * choices[4]
const char * getAttribute(const char *attribName, int partNum=-1, char partSplit= '|') const
virtual char processText(SWBuf &text, const SWKey *key=0, const SWModule *module=0)
#define SWORD_NAMESPACE_END
SWBuf & setFormatted(const char *format,...)
virtual char getTestament() const
int getAttributePartCount(const char *attribName, char partSplit= '|') const