186 buf.
appendFormatted(
"<small><em class=\"morph\">(<a href=\"passagestudy.jsp?action=showMorph&type=Greek&value=%s\" class=\"morph\">%s</a>)</em></small>",
193 buf.
appendFormatted(
"<small><em class=\"strongs\"><<a href=\"passagestudy.jsp?action=showStrongs&type=&value=%s\" class=\"strongs\">%s</a>></em></small>",
200 buf.
appendFormatted(
"<small><em class=\"strongs\"><<a href=\"passagestudy.jsp?action=showStrongs&type=%s&value=%s\" class=\"strongs\">",
201 ((ch ==
'H') ?
"Hebrew" :
"Greek"),
204 buf +=
"</a>></em></small>";
207 buf += (tag.
isEndTag() ?
"</b>" :
"<b>");
212 else if (!strcmp(tag.
getName(),
"note")) {
217 if (type ==
"x-cross-ref") type =
"crossReference";
222 SWBuf classExtras =
"";
227 if (subType.
size()) {
233 char ch = (type ==
"crossReference" ?
'x':
'n');
234 buf.
appendFormatted(
"<a class=\"noteMarker%s\" href=\"passagestudy.jsp?action=showNote&type=%c&value=%s&module=%s&passage=%s\"><small><sup class=\"%c\">*%c%s</sup></small></a>",
246 buf.
appendFormatted(
"<a class=\"noteMarker%s\" href=\"passagestudy.jsp?action=showNote&type=%c&value=%s&module=%s&passage=%s\"><small><sup class=\"%c\">*%c%s</sup></small></a>",
263 else if (!strcmp(tag.
getName(),
"scripture")) {
264 buf += (tag.
isEndTag() ?
"</i>" :
"<i>");
267 else if (!strcmp(tag.
getName(),
"scripRef")) {
280 buf.
appendFormatted(
"<a href=\"passagestudy.jsp?action=showRef&type=scripRef&value=%s&module=%s\">",
282 (version.length()) ?
URL::encode(version.c_str()).c_str() :
"");
292 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>",
329 const char *src = strstr(token,
"src");
334 if (((c = strchr(src+3,
'"')) ==
NULL) ||
335 ((d = strchr( ++c ,
'"')) ==
NULL))
338 SWBuf imagename =
"file:";
345 buf.
appendFormatted(
"<a href=\"passagestudy.jsp?action=showImage&value=%s&module=%s\"><",
349 for (c = token; *c; c++) {
350 if ((*c ==
'/') && (*(c+1) ==
'\0'))
353 for (;((*c) && (*c !=
'"')); c++)
356 if (!*c) { c--;
continue; }
362 if (buf[buf.
length()-2] ==
'/')
369 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
virtual bool handleToken(SWBuf &buf, const char *token, BasicFilterUserData *userData)
virtual const char * getHeader() 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)
const char * c_str() const
SWBuf & append(const char *str, long max=-1)
void setPassThruNumericEscapeString(bool val)
unsigned long size() const
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)
MyUserData(const SWModule *module, const SWKey *key)
void setEscapeEnd(const char *escEnd)
#define SWORD_NAMESPACE_END
static const SWBuf encode(const char *urlText)