33 static const char oName[] =
"Textual Variants";
34 static const char oTip[] =
"Switch between Textual Variants modes";
35 static const char *
choices[4] = {
"Primary Reading",
"Secondary Reading",
"All Readings",
"" };
38 static const StringList oVals(&choices[0], &choices[3]);
60 if (option == 0 || option == 1) {
67 const char *from = orig.
c_str();
70 const char* variantCompareString = (option == 0) ?
"div type=\"variant\" class=\"1\"" :
"div type=\"variant\" class=\"2\"";
72 for (text =
""; *from; from++) {
78 else if (*from ==
'>') {
81 if ( !strncmp(token.
c_str(), variantCompareString, 28)) {
86 if (!strncmp(token.
c_str(),
"div type=\"variant\"", 18)) {
90 if (!strncmp(token.
c_str(),
"/div", 4)) {
#define SWORD_NAMESPACE_START
static const StringList * oValues()
const char * c_str() const
std::list< SWBuf > StringList
SWBuf & append(const char *str, long max=-1)
static const char oName[]
virtual char processText(SWBuf &text, const SWKey *key=0, const SWModule *module=0)
static const char * choices[4]
#define SWORD_NAMESPACE_END