36 static const char oName[] =
"Greek Accents";
37 static const char oTip[] =
"Toggles Greek Accents";
41 static const StringList oVals(&choices[0], &choices[2]);
51 converters[0x2019] =
"";
52 converters[0x1FBF] =
"";
53 converters[0x2CFF] =
"";
54 converters[0xFE24] =
"";
55 converters[0xFE25] =
"";
56 converters[0xFE26] =
"";
57 converters[0x0300] =
"";
58 converters[0x0301] =
"";
59 converters[0x0302] =
"";
60 converters[0x0308] =
"";
61 converters[0x0313] =
"";
62 converters[0x0314] =
"";
63 converters[0x037A] =
"";
64 converters[0x0342] =
"";
65 converters[0x1FBD] =
"";
66 converters[0x0343] =
"";
351 const unsigned char* from = (
unsigned char*)orig.
c_str();
353 map<SW_u32, SWBuf>::const_iterator it =
converters.end();
357 if (!ch) ch = 0xFFFD;
363 else text.
append((
const char *)it->second, it->second.size());
#define SWORD_NAMESPACE_START
class SWORD_NAMESPACE_START::converters_init __converters_init
static const StringList * oValues()
const char * c_str() const
virtual ~UTF8GreekAccents()
std::list< SWBuf > StringList
SWBuf & append(const char *str, long max=-1)
static const char oName[]
static const char * choices[4]
SWBuf * getUTF8FromUniChar(SW_u32 uchar, SWBuf *appendTo)
std::map< SW_u32, SWBuf > converters
virtual char processText(SWBuf &text, const SWKey *key=0, const SWModule *module=0)
#define SWORD_NAMESPACE_END
SW_u32 getUniCharFromUTF8(const unsigned char **buf, bool skipValidation=false)
void setSize(unsigned long len)