string curl_test const string int s_len int size static_SB clean reser

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
string f$curl_test (const string &s) {
int s_len = (int) s.size();
static_SB.clean().reserve (6 * s_len);
for(int i = 0; i < s_len; i++) {
switch(s[i]) {
default:
static_SB.append_char (s[i]);
}
}
return static_SB.str();
}