| 78 | } |
| 79 | |
| 80 | std::string |
| 81 | StringUtils::get_substring_before(const std::string &s, size_t &pos, const char close_delim) |
| 82 | { |
| 83 | size_t end_pos = s.find_first_of(close_delim, pos); |
| 84 | if (end_pos == string::npos || end_pos == pos) |
| 85 | return ""; |
| 86 | return s.substr(pos, (end_pos - pos)); |
| 87 | } |
| 88 | |
| 89 | char |
| 90 | StringUtils::first_nonspace_char(const std::string &s) |
nothing calls this directly
no outgoing calls
no test coverage detected