36 const unsigned char *from;
37 if ((
unsigned long)key < 2)
42 from = (
const unsigned char *)orig.
c_str();
44 for (text =
""; *from; from++) {
48 *((
unsigned short *)(text.
getRawData()+(text.
size()-2))) = (
unsigned short) 0x20AC;
51 *((
unsigned short *)(text.
getRawData()+(text.
size()-2))) = (
unsigned short) 0x201A;
54 *((
unsigned short *)(text.
getRawData()+(text.
size()-2))) = (
unsigned short) 0x0192;
57 *((
unsigned short *)(text.
getRawData()+(text.
size()-2))) = (
unsigned short) 0x201E;
60 *((
unsigned short *)(text.
getRawData()+(text.
size()-2))) = (
unsigned short) 0x2026;
63 *((
unsigned short *)(text.
getRawData()+(text.
size()-2))) = (
unsigned short) 0x2020;
66 *((
unsigned short *)(text.
getRawData()+(text.
size()-2))) = (
unsigned short) 0x2021;
69 *((
unsigned short *)(text.
getRawData()+(text.
size()-2))) = (
unsigned short) 0x02C6;
72 *((
unsigned short *)(text.
getRawData()+(text.
size()-2))) = (
unsigned short) 0x2030;
75 *((
unsigned short *)(text.
getRawData()+(text.
size()-2))) = (
unsigned short) 0x0160;
78 *((
unsigned short *)(text.
getRawData()+(text.
size()-2))) = (
unsigned short) 0x2039;
81 *((
unsigned short *)(text.
getRawData()+(text.
size()-2))) = (
unsigned short) 0x0152;
84 *((
unsigned short *)(text.
getRawData()+(text.
size()-2))) = (
unsigned short) 0x017D;
87 *((
unsigned short *)(text.
getRawData()+(text.
size()-2))) = (
unsigned short) 0x2018;
90 *((
unsigned short *)(text.
getRawData()+(text.
size()-2))) = (
unsigned short) 0x2019;
93 *((
unsigned short *)(text.
getRawData()+(text.
size()-2))) = (
unsigned short) 0x201C;
96 *((
unsigned short *)(text.
getRawData()+(text.
size()-2))) = (
unsigned short) 0x201D;
99 *((
unsigned short *)(text.
getRawData()+(text.
size()-2))) = (
unsigned short) 0x2022;
102 *((
unsigned short *)(text.
getRawData()+(text.
size()-2))) = (
unsigned short) 0x2013;
105 *((
unsigned short *)(text.
getRawData()+(text.
size()-2))) = (
unsigned short) 0x2014;
108 *((
unsigned short *)(text.
getRawData()+(text.
size()-2))) = (
unsigned short) 0x02DC;
111 *((
unsigned short *)(text.
getRawData()+(text.
size()-2))) = (
unsigned short) 0x2122;
114 *((
unsigned short *)(text.
getRawData()+(text.
size()-2))) = (
unsigned short) 0x0161;
117 *((
unsigned short *)(text.
getRawData()+(text.
size()-2))) = (
unsigned short) 0x203A;
120 *((
unsigned short *)(text.
getRawData()+(text.
size()-2))) = (
unsigned short) 0x0153;
123 *((
unsigned short *)(text.
getRawData()+(text.
size()-2))) = (
unsigned short) 0x017E;
126 *((
unsigned short *)(text.
getRawData()+(text.
size()-2))) = (
unsigned short) 0x0178;
129 *((
unsigned short *)(text.
getRawData()+(text.
size()-2))) = (
unsigned short) *from;
#define SWORD_NAMESPACE_START
virtual char processText(SWBuf &text, const SWKey *key=0, const SWModule *module=0)
const char * c_str() const
unsigned long size() const
#define SWORD_NAMESPACE_END
void setSize(unsigned long len)