41 if ((
unsigned long)key < 2)
45 from = (
unsigned char *)orig.
c_str();
48 for (text =
""; *from; from++) {
50 if ((*from & 128) != 128) {
55 if ((*from & 128) && ((*from & 64) != 64)) {
62 for (subsequent = 1; (*from & 128); subsequent++) {
64 from[subsequent] &= 63;
66 ch |= from[subsequent];
70 char significantFirstBits = 8 - (2+subsequent);
72 ch |= (((short)*from) << (((6*subsequent)+significantFirstBits)-8));
76 sprintf(digit,
"%ld", ch);
77 for (
char *dig = digit; *dig; dig++)
#define SWORD_NAMESPACE_START
const char * c_str() const
virtual char processText(SWBuf &text, const SWKey *key=0, const SWModule *module=0)
#define SWORD_NAMESPACE_END