20 static char cflush(istream&,
char);
21 static char rflush(istream&,
char);
22 static bool verify(istream&,
char);
24 static bool readNum(istream&,
int&);
25 static bool readNum(istream&,
char&);
26 static bool readNum(istream&, uint16_t&);
27 static bool readNum(istream&, uint32_t&);
28 static bool readWord(istream&,
string&);
29 static bool readName(istream&,
string&);
41 static bool readNode(istream&,
int&,
int);
42 static void writeNode(ostream&,
int,
int);
49 static bool prefix(
string,
string);
62 inline char Misc::nam(
int u) {
return char(u + (
'a'-1)); }
69 inline int Misc::num(
char c) {
return int(c - (
'a'-1)); }
76 stringstream ss; ss << i;
81 stringstream ss; ss << i;
91 char buf[16]; sprintf(buf,
"%d",i); s = buf;
95 stringstream ss; ss << i; s = ss.str();
106 uint64_t sec = t/1000000000;
107 uint64_t frac = (t/1000)%1000000;
110 ss << sec <<
"." << setfill(
'0') << setw(6) << frac;
124 if (1 <= n && n <= 26) s +=
nam(u);
125 else addNum2strings,u);
137 if (1 <= n && n <= 26) s =
nam(u);