#include <osismorphsegmentation.h>
Definition at line 35 of file osismorphsegmentation.h.
OSISMorphSegmentation::OSISMorphSegmentation |
( |
| ) |
|
OSISMorphSegmentation::~OSISMorphSegmentation |
( |
| ) |
|
|
virtual |
virtual const char* SWFilter::getHeader |
( |
| ) |
const |
|
inlinevirtualinherited |
virtual const char* SWOptionFilter::getOptionName |
( |
| ) |
|
|
inlinevirtualinherited |
virtual const char* SWOptionFilter::getOptionTip |
( |
| ) |
|
|
inlinevirtualinherited |
gets a short explanation of the option of this filter; it could be presented to the user in frontend programs
- Returns
- option tip/explanation
Reimplemented in UTF8Transliterator.
Definition at line 78 of file swoptfilter.h.
const char * SWOptionFilter::getOptionValue |
( |
| ) |
|
|
virtualinherited |
virtual StringList SWOptionFilter::getOptionValues |
( |
| ) |
|
|
inlinevirtualinherited |
returns a list of the possible option values
- Returns
- list of option values
Reimplemented in UTF8Transliterator.
Definition at line 84 of file swoptfilter.h.
const StringList * optValues
bool SWOptionFilter::isBoolean |
( |
| ) |
|
|
inlineinherited |
many options are simple Off/On boolean type, and frontends may wish to show these with checkmarks or the like to the end user. This is a convenience method to allow a frontend to check if this filter has only Off/On values
Definition at line 67 of file swoptfilter.h.
This method processes and appropriately modifies the text given it for a particular filter task
- Parameters
-
text | The text to be filtered/converted |
key | Current key That was used. |
module | Current module. |
- Returns
- 0
Implements SWFilter.
Definition at line 54 of file osismorphsegmentation.cpp.
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)) {
const char * c_str() const
SWBuf & append(const char *str, long max=-1)
virtual AttributeTypeList & getEntryAttributes() const
const char * getAttribute(const char *attribName, int partNum=-1, char partSplit= '|') const
bool isEndTag(const char *eID=0) const
SWBuf & setFormatted(const char *format,...)
void SWOptionFilter::setOptionValue |
( |
const char * |
ival | ) |
|
|
virtualinherited |
sets the value of the option of this filter, e.g maybe a strong's filter might be set to "On" / "Off" - that would mean to show or not to show the strongs in the text, see also getOptionValues()
- Parameters
-
Reimplemented in UTF8Transliterator.
Definition at line 52 of file swoptfilter.cpp.
53 for (StringList::const_iterator loop =
optValues->begin(); loop !=
optValues->end(); loop++) {
54 if (!
stricmp(loop->c_str(), ival)) {
int stricmp(const char *s1, const char *s2)
int strnicmp(const char *s1, const char *s2, int len)
const StringList * optValues
bool SWOptionFilter::isBooleanVal |
|
protectedinherited |
bool SWOptionFilter::option |
|
protectedinherited |
SWBuf SWOptionFilter::optionValue |
|
protectedinherited |
const char* SWOptionFilter::optName |
|
protectedinherited |
const char* SWOptionFilter::optTip |
|
protectedinherited |
The documentation for this class was generated from the following files: