| 63 | } |
| 64 | |
| 65 | std::string |
| 66 | StringUtils::get_substring(const std::string &s, const char open_delim, const char close_delim) |
| 67 | { |
| 68 | if (s.empty()) |
| 69 | return ""; |
| 70 | size_t pos = 0; |
| 71 | ignore_spaces(s, pos); |
| 72 | |
| 73 | if (s[pos] != open_delim) |
| 74 | return ""; |
| 75 | |
| 76 | pos++; |
| 77 | return get_substring_before(s, pos, close_delim); |
| 78 | } |
| 79 | |
| 80 | std::string |
| 81 | StringUtils::get_substring_before(const std::string &s, size_t &pos, const char close_delim) |
nothing calls this directly
no outgoing calls
no test coverage detected