37 #include "config_ff.h"
53 FFStr::FFStr(
const string &n,
const string &d) : Str(n, d), d_length(0)
58 FFStr::ptr_duplicate()
60 return new FFStr(*
this);
70 char *ptr = BufVal + BufPtr;
74 char *TmpBuf =
new char[length() + 1];
76 vector<char> TmpBuf(length() + 1);
87 for (i = length() - 1; i >= 0; i--)
88 if (!isspace(*(ptr + i)))
break;
91 for (j = 0; j < i; j++)
92 if (!isspace(*(ptr + j)))
break;
94 strncpy(&TmpBuf[0], ptr + j, i - j + 1);
95 TmpBuf[i - j + 1] =
'\0';
98 set_value(&TmpBuf[0]);
100 string *Nstr =
new string((
const char *) TmpBuf);