| 146 | } |
| 147 | |
| 148 | string trimSpaces(const string& str) |
| 149 | { |
| 150 | const char SPACE(' '); |
| 151 | |
| 152 | size_t start = str.find_first_not_of(SPACE); |
| 153 | string result = (start == std::string::npos) ? EMPTY_STRING : str.substr(start); |
| 154 | size_t end = result.find_last_not_of(SPACE); |
| 155 | result = (end == std::string::npos) ? EMPTY_STRING : result.substr(0, end + 1); |
| 156 | return result; |
| 157 | } |
| 158 | |
| 159 | StringVec splitNamePath(const string& namePath) |
| 160 | { |
no test coverage detected