31 static const char oName[] =
"Morphological Tags";
32 static const char oTip[] =
"Toggles Morphological Tags On and Off if they exist";
36 static const StringList oVals(&choices[0], &choices[2]);
56 const char *from = orig.
c_str();
59 const char* start = 0;
62 for (text =
""; *from; ++from) {
72 if ((*token ==
'w') && (token[1] ==
' ')) {
73 start = strstr(token+2,
"morph=\"");
74 end = start ? strchr(start+7,
'"') : 0;
78 text.
append(token, start-token);
94 token[tokpos++] = *from;
#define SWORD_NAMESPACE_START
static const StringList * oValues()
virtual char processText(SWBuf &text, const SWKey *key=0, const SWModule *module=0)
const char * c_str() const
std::list< SWBuf > StringList
SWBuf & append(const char *str, long max=-1)
static const char oName[]
static const char * choices[4]
#define SWORD_NAMESPACE_END