| 93 | } |
| 94 | |
| 95 | std::string_view TrimWhiteSpace(std::string_view value) { |
| 96 | while (!value.empty() |
| 97 | && isspace(static_cast<unsigned char>(value.front())) != 0) { |
| 98 | value.remove_prefix(1); |
| 99 | } |
| 100 | while (!value.empty() && isspace(static_cast<unsigned char>(value.back())) != 0) { |
| 101 | value.remove_suffix(1); |
| 102 | } |
| 103 | return value; |
| 104 | } |
| 105 | |
| 106 | bool IsAllDigits(std::string_view text) { |
| 107 | return std::all_of(text.begin(), text.end(), |
no test coverage detected