181 buf.
appendFormatted(
"<small><em class=\"morph\">(<a href=\"passagestudy.jsp?action=showMorph&type=Greek&value=%s\" class=\"morph\">%s</a>)</em></small>",
188 buf.
appendFormatted(
"<small><em class=\"strongs\"><<a href=\"passagestudy.jsp?action=showStrongs&type=&value=%s\" class=\"strongs\">%s</a>></em></small>",
195 buf.
appendFormatted(
"<small><em class=\"strongs\"><<a href=\"passagestudy.jsp?action=showStrongs&type=%s&value=%s\" class=\"strongs\">",
196 ((ch ==
'H') ?
"Hebrew" :
"Greek"),
199 buf +=
"</a>></em></small>";
202 buf += (tag.
isEndTag() ?
"</b>" :
"<b>");
207 else if (!strcmp(tag.
getName(),
"note")) {
216 buf.
appendFormatted(
"<a href=\"passagestudy.jsp?action=showNote&type=%c&value=%s&module=%s&passage=%s\"><small><sup class=\"%c\">*%c%s</sup></small></a>",
227 buf.
appendFormatted(
"<a href=\"passagestudy.jsp?action=showNote&type=%c&value=%s&module=%s&passage=%s\"><small><sup class=\"%c\">*%c%s</sup></small></a>",
243 else if (!strcmp(tag.
getName(),
"scripture")) {
244 buf += (tag.
isEndTag() ?
"</i>" :
"<i>");
247 else if (!strcmp(tag.
getName(),
"scripRef")) {
260 buf.
appendFormatted(
"<a href=\"passagestudy.jsp?action=showRef&type=scripRef&value=%s&module=%s\">",
262 (version.length()) ?
URL::encode(version.c_str()).c_str() :
"");
272 buf.
appendFormatted(
"<a href=\"passagestudy.jsp?action=showNote&type=x&value=%s&module=%s&passage=%s\"><small><sup class=\"x\">*x%s</sup></small></a>",
286 buf +=
"</i></b><br />";
292 buf +=
"<br /><b><i>";
296 buf +=
"<br /><b><i>";
307 const char *src = strstr(token,
"src");
312 if (((c = strchr(src+3,
'"')) ==
NULL) ||
313 ((d = strchr( ++c ,
'"')) ==
NULL))
316 SWBuf imagename =
"file:";
323 buf.
appendFormatted(
"<a href=\"passagestudy.jsp?action=showImage&value=%s&module=%s\"><",
327 for (c = token; *c; c++) {
328 if ((*c ==
'/') && (*(c+1) ==
'\0'))
331 for (;((*c) && (*c !=
'"')); c++)
334 if (!*c) { c--;
continue; }
340 if (buf[buf.
length()-2] ==
'/')
347 buf +=
" border=0 /></a>";
const char * getName() const
#define SWORD_NAMESPACE_START
SWBuf & appendFormatted(const char *format,...)
void setTokenEnd(const char *tokenEnd)
void addAllowedEscapeString(const char *findString)
unsigned long length() const
const char * getType() const
virtual const char * getConfigEntry(const char *key) const
const char * getName() const
void setTokenCaseSensitive(bool val)
void setEscapeStart(const char *escStart)
bool substituteToken(SWBuf &buf, const char *token)
int stricmp(const char *s1, const char *s2)
virtual const char * getText() const
virtual const char * getText() const
void setTokenStart(const char *tokenStart)
MyUserData(const SWModule *module, const SWKey *key)
const char * c_str() const
void setPassThruNumericEscapeString(bool val)
const char * getAttribute(const char *attribName, int partNum=-1, char partSplit= '|') const
void setEscapeStringCaseSensitive(bool val)
bool isEndTag(const char *eID=0) const
void addTokenSubstitute(const char *findString, const char *replaceString)
virtual bool handleToken(SWBuf &buf, const char *token, BasicFilterUserData *userData)
void setEscapeEnd(const char *escEnd)
#define SWORD_NAMESPACE_END
static const SWBuf encode(const char *urlText)