39 unsigned char significantFirstBits, subsequent;
41 if ((
unsigned long)key < 2) {
46 from = (
unsigned char*)orig.
c_str();
51 for (text =
""; *from; from++) {
53 if ((*from & 128) != 128) {
57 else if ((*from & 128) && ((*from & 64) != 64)) {
63 for (subsequent = 1; (*from & 128); subsequent++) {
65 from[subsequent] &= 63;
67 uchar |= from[subsequent];
71 significantFirstBits = 8 - (2+subsequent);
73 uchar |= (((short)*from) << (((6*subsequent)+significantFirstBits)-8));
78 text += (
unsigned char)uchar;
#define SWORD_NAMESPACE_START
const char * c_str() const
virtual char processText(SWBuf &text, const SWKey *key=0, const SWModule *module=0)
UTF8Latin1(char rchar= '?')
#define SWORD_NAMESPACE_END