| 187 | } |
| 188 | |
| 189 | std::string AsciiToUpper(std::string_view value) { |
| 190 | // TODO: ASCII validation |
| 191 | std::string result = std::string(value); |
| 192 | std::transform(result.begin(), result.end(), result.begin(), |
| 193 | [](unsigned char c) { return std::toupper(c); }); |
| 194 | return result; |
| 195 | } |
| 196 | |
| 197 | std::optional<std::string> Replace(std::string_view s, std::string_view token, |
| 198 | std::string_view replacement) { |
no test coverage detected