40 conv = ucnv_open(
"UTF-8", &err);
53 if ((
unsigned long)key < 2)
56 int32_t len = text.
length();
57 ustr =
new UChar[len];
60 len = ucnv_toUChars(
conv, ustr, len, text.
c_str(), -1, &
err);
61 ustr2 =
new UChar[len];
63 UBiDi* bidi = ubidi_openSized(len + 1, 0, &
err);
64 ubidi_setPara(bidi, ustr, len, UBIDI_DEFAULT_RTL,
NULL, &
err);
65 len = ubidi_writeReordered(bidi, ustr2, len,
66 UBIDI_DO_MIRRORING | UBIDI_REMOVE_BIDI_CONTROLS, &
err);
#define SWORD_NAMESPACE_START
unsigned long length() const
const char * c_str() const
virtual char processText(SWBuf &text, const SWKey *key=0, const SWModule *module=0)
unsigned long size() const
#define SWORD_NAMESPACE_END
void setSize(unsigned long len)