159 if (!strcmp(tag.
getName(),
"sync")) {
162 if (*value ==
'H' || *value ==
'G' || *value ==
'A') {
164 buf +=
"<small><em>";
166 buf +=
"</em></small>";
168 else if (*value ==
'T') {
173 buf +=
"</i></small>";
177 buf +=
"<small><em>";
179 buf +=
"</em></small>";
182 buf +=
"<small><em>(";
184 buf +=
")</em></small>";
187 else if (!strcmp(tag.
getName(),
"div")) {
189 buf +=
"</i></b><br />";
195 buf +=
"<br /><b><i>";
199 buf +=
"<br /><b><i>";
203 else if (!strcmp(tag.
getName(),
"img")) {
204 const char *src = strstr(token,
"src");
209 for (
const char *c = token; *c; c++) {
211 for (;((*c) && (*c !=
'"')); c++)
214 if (!*c) { c--;
continue; }
220 if (buf[buf.
length()-2] ==
'/')
229 else if (!strcmp(tag.
getName(),
"scripRef")) {
#define SWORD_NAMESPACE_START
void setTokenEnd(const char *tokenEnd)
void addAllowedEscapeString(const char *findString)
unsigned long length() 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)
void setTokenStart(const char *tokenStart)
void setPassThruNumericEscapeString(bool val)
const char * getAttribute(const char *attribName, int partNum=-1, char partSplit= '|') const
virtual bool handleToken(SWBuf &buf, const char *token, BasicFilterUserData *userData)
void setEscapeStringCaseSensitive(bool val)
bool isEndTag(const char *eID=0) const
void addTokenSubstitute(const char *findString, const char *replaceString)
void setEscapeEnd(const char *escEnd)
#define SWORD_NAMESPACE_END