36 static const char oName[] =
"Morpheme Segmentation";
37 static const char oTip[] =
"Toggles Morpheme Segmentation On and Off, when present";
41 static const StringList oVals(&choices[0], &choices[2]);
60 const char *from = orig.
c_str();
64 unsigned int morphemeNum = 0;
65 bool inMorpheme =
false;
68 for (text =
""; *from; ++from) {
78 if (!strncmp(token.
c_str(),
"seg ", 4) || !strncmp(token.
c_str(),
"/seg", 4)) {
#define SWORD_NAMESPACE_START
virtual char processText(SWBuf &text, const SWKey *key=0, const SWModule *module=0)
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 ~OSISMorphSegmentation()
virtual AttributeTypeList & getEntryAttributes() const
static const char * choices[4]
const char * getAttribute(const char *attribName, int partNum=-1, char partSplit= '|') const
bool isEndTag(const char *eID=0) const
#define SWORD_NAMESPACE_END
SWBuf & setFormatted(const char *format,...)