42 return new MyUserData(module, key);
83 MyUserData *userData = (MyUserData *) baseUserData;
86 if (!strncmp(token,
"WG", 2) || !strncmp(token,
"WH", 2)) {
87 buf +=
" <small><em><<a href=\"!DIATHEKE_URL!";
88 if (token[1] ==
'H') {
89 buf +=
"StrongsHebrew";
91 else if (token[1] ==
'G') {
92 buf +=
"StrongsGreek";
95 for (i = 2; i < strlen(token); i++)
98 for (i = 2; i < strlen(token); i++)
100 buf +=
"</a>></em></small>";
103 else if (!strncmp(token,
"WTG", 3) || !strncmp(token,
"WTH", 3)) {
104 buf +=
" <small><em><<a href=\"!DIATHEKE_URL!";
105 if (token[2] ==
'H') {
106 buf +=
"StrongsHebrew";
108 else if (token[2] ==
'G') {
109 buf +=
"StrongsGreek";
112 for (i = 3; i < strlen(token); i++)
115 for (i = 3; i < strlen(token); i++)
117 buf +=
"</a>></em></small>";
120 else if (!strncmp(token,
"WT", 2)) {
121 buf +=
" <small><em>(<a href=\"!DIATHEKE_URL!Packard=on&verse=";
122 for (i = 1; i < strlen(token); i++)
125 for (i = 1; i < strlen(token); i++)
127 buf +=
"</a>)</em></small>";
130 else if (!strncmp(token,
"RB", 2)) {
132 userData->properties[
"hasFootnotePreTag"] =
"true";
135 else if (!strncmp(token,
"RF", 2)) {
136 if(userData->properties[
"hasFootnotePreTag"] ==
"true") {
137 userData->properties[
"hasFootnotePreTag"] =
"false";
140 buf +=
"<font color=\"#800000\"><small> (";
143 else if (!strncmp(token,
"FN", 2)) {
144 buf +=
"<font face=\"";
145 for (i = 2; i < strlen(token); i++)
150 else if (!strncmp(token,
"CA", 2)) {
151 buf += (char)atoi(&token[2]);
#define SWORD_NAMESPACE_START
void setTokenEnd(const char *tokenEnd)
void setTokenCaseSensitive(bool val)
bool substituteToken(SWBuf &buf, const char *token)
virtual bool handleToken(SWBuf &buf, const char *token, BasicFilterUserData *userData)
void setTokenStart(const char *tokenStart)
BasicFilterUserData(const SWModule *module, const SWKey *key)
SWORD_NAMESPACE_START typedef std::map< SWBuf, SWBuf > DualStringMap
virtual BasicFilterUserData * createUserData(const SWModule *module, const SWKey *key)
void addTokenSubstitute(const char *findString, const char *replaceString)
#define SWORD_NAMESPACE_END