| 135 | } |
| 136 | |
| 137 | string string_strip(const string &s) |
| 138 | { |
| 139 | string result = s; |
| 140 | result.erase(0, result.find_first_not_of(' ')); |
| 141 | result.erase(result.find_last_not_of(' ') + 1); |
| 142 | return result; |
| 143 | } |
| 144 | |
| 145 | void string_replace(string &haystack, const string &needle, const string &other) |
| 146 | { |
no outgoing calls