42 if (!strncmp(token,
"w", 1)) {
45 num = strstr(token,
"lemma=\"x-Strongs:");
47 for (num+=17; ((*num) && (*num !=
'\"')); num++)
51 if (atoi((!isdigit(*val))?val+1:val) < 5627) {
52 buf +=
" <small><em><";
54 for (tok = val; *tok; tok++) {
57 if ((url.
length() > 1) && strchr(
"GH", url[0])) {
63 for (tok = (!isdigit(*val))?val+1:val; *tok; tok++) {
66 buf +=
"</a>></em></small> ";
70 num = strstr(token,
"lemma=\"strong:");
72 for (num+=14; ((*num) && (*num !=
'\"')); num++)
76 if (atoi((!isdigit(*val))?val+1:val) < 5627) {
77 buf +=
" <small><em><";
79 for (tok = val; *tok; tok++) {
82 if ((url.
length() > 1) && strchr(
"GH", url[0])) {
88 for (tok = (!isdigit(*val))?val+1:val; *tok; tok++) {
91 buf +=
"</a>></em></small> ";
96 num = strstr(token,
"morph=\"x-Robinson:");
98 for (num+=18; ((*num) && (*num !=
'\"')); num++)
101 buf +=
" <small><em>(";
103 for (tok = val; *tok; tok++) {
109 for (tok = val; *tok; tok++) {
112 buf +=
"</a>)</em></small> ";
116 else if (!strncmp(token,
"WG", 2) || !strncmp(token,
"WH", 2)) {
117 buf +=
" <small><em><";
120 for (tok = token+1; *tok; tok++) {
123 if ((url.
length() > 1) && strchr(
"GH", url[0])) {
129 for (tok = token + 2; *tok; tok++) {
132 buf +=
"</a>></em></small>";
135 else if (!strncmp(token,
"WTG", 3) || !strncmp(token,
"WTH", 3)) {
136 buf +=
" <small><em>(";
138 for (tok = token + 2; *tok; tok++) {
142 if ((url.
length() > 1) && strchr(
"GH", url[0])) {
148 for (tok = token + 3; *tok; tok++)
151 buf +=
"</a>)</em></small>";
154 else if (!strncmp(token,
"WT", 2) && strncmp(token,
"WTH", 3) && strncmp(token,
"WTG", 3)) {
155 buf +=
" <small><em>(";
156 for (tok = token + 2; *tok; tok++) {
162 for (tok = token + 2; *tok; tok++) {
166 buf +=
"</a>)</em></small>";
169 else if (!strncmp(token,
"RX", 2)) {
171 for (tok = token + 3; *tok; tok++) {
172 if(*tok !=
'<' && *tok+1 !=
'R' && *tok+2 !=
'x') {
183 else if ((!strncmp(token,
"span", 4))
184 || (!strncmp(token,
"/span", 5))) {
#define SWORD_NAMESPACE_START
SWBuf & appendFormatted(const char *format,...)
unsigned long length() const
bool substituteToken(SWBuf &buf, const char *token)
const char * c_str() const
virtual bool handleToken(SWBuf &buf, const char *token, BasicFilterUserData *userData)
const SWBuf passageStudyURL
virtual bool handleToken(SWBuf &buf, const char *token, BasicFilterUserData *userData)
#define SWORD_NAMESPACE_END
static const SWBuf encode(const char *urlText)