156 if (!strncmp(token,
"WG", 2)) {
158 buf +=
" <small><em class=\"strongs\"><<a href=\"passagestudy.jsp?action=showStrongs&type=Greek&value=";
159 for (tok = token+2; *tok; tok++)
162 buf +=
"\" class=\"strongs\">";
163 for (tok = token + 2; *tok; tok++)
166 buf +=
"</a>></em></small>";
168 else if (!strncmp(token,
"WH", 2)) {
170 buf +=
" <small><em class=\"strongs\"><<a href=\"passagestudy.jsp?action=showStrongs&type=Hebrew&value=";
171 for (tok = token+2; *tok; tok++)
174 buf +=
"\" class=\"strongs\">";
175 for (tok = token + 2; *tok; tok++)
178 buf +=
"</a>></em></small>";
180 else if (!strncmp(token,
"WTG", 3)) {
182 buf +=
" <small><em class=\"strongs\">(<a href=\"passagestudy.jsp?action=showStrongs&type=Greek&value=";
183 for (tok = token + 3; *tok; tok++)
186 buf +=
"\" class=\"strongs\">";
187 for (tok = token + 3; *tok; tok++)
190 buf +=
"</a>)</em></small>";
192 else if (!strncmp(token,
"WTH", 3)) {
194 buf +=
" <small><em class=\"strongs\">(<a href=\"passagestudy.jsp?action=showStrongs&type=Hebrew&value=";
195 for (tok = token + 3; *tok; tok++)
198 buf +=
"\" class=\"strongs\">";
199 for (tok = token + 3; *tok; tok++)
202 buf +=
"</a>)</em></small>";
205 else if (!strncmp(token,
"WT", 2) && strncmp(token,
"WTH", 3) && strncmp(token,
"WTG", 3)) {
207 buf +=
" <small><em class=\"morph\">(<a href=\"passagestudy.jsp?action=showMorph&type=Greek&value=";
209 for (tok = token + 2; *tok; tok++)
212 buf +=
"\" class=\"morph\">";
213 for (tok = token + 2; *tok; tok++)
216 buf +=
"</a>)</em></small>";
219 else if (!strcmp(tag.
getName(),
"RX")) {
221 for (tok = token + 3; *tok; tok++) {
222 if(*tok !=
'<' && *tok+1 !=
'R' && *tok+2 !=
'x') {
231 else if (!strcmp(tag.
getName(),
"RF")) {
238 buf.
appendFormatted(
"<a href=\"passagestudy.jsp?action=showNote&type=n&value=%s&module=%s&passage=%s\"><small><sup class=\"n\">*n%s</sup></small></a> ",
246 else if (!strcmp(tag.
getName(),
"Rf")) {
272 else if (!strncmp(token,
"FN", 2)) {
273 buf +=
"<font face=\"";
274 for (tok = token + 2; *tok; tok++)
280 else if (!strncmp(token,
"CA", 2)) {
281 buf += (char)atoi(&token[2]);
const char * getName() const
#define SWORD_NAMESPACE_START
SWBuf & appendFormatted(const char *format,...)
void setTokenEnd(const char *tokenEnd)
const char * getName() const
void setTokenCaseSensitive(bool val)
bool substituteToken(SWBuf &buf, const char *token)
virtual const char * getText() const
void setTokenStart(const char *tokenStart)
const char * c_str() const
virtual bool handleToken(SWBuf &buf, const char *token, BasicFilterUserData *userData)
const char * getAttribute(const char *attribName, int partNum=-1, char partSplit= '|') const
MyUserData(const SWModule *module, const SWKey *key)
void addTokenSubstitute(const char *findString, const char *replaceString)
#define SWORD_NAMESPACE_END
static const SWBuf encode(const char *urlText)