36 const char *from = orig.
c_str();
38 for (text =
""; *from; ++from) {
42 if ((*from ==
'-') && (text.
length() > 0) && (text[text.
length()-1] !=
'-')) {
45 for (c = from+1; *c; c++) {
46 if ((*c == 10) || (*c == 13)) {
49 if (!strchr(
" \t\n", *c)) {
61 if ((*from == 10) || (*from == 13)) {
62 if ((text.
length()>1) && (text[text.
length()-2] !=
' ') && (*(from+1) !=
' '))
#define SWORD_NAMESPACE_START
unsigned long length() const
virtual char processText(SWBuf &text, const SWKey *key=0, const SWModule *module=0)
const char * c_str() const
SWBuf & append(const char *str, long max=-1)
#define SWORD_NAMESPACE_END