| 179 | } |
| 180 | |
| 181 | std::string AsciiToLower(std::string_view value) { |
| 182 | // TODO: ASCII validation |
| 183 | std::string result = std::string(value); |
| 184 | std::transform(result.begin(), result.end(), result.begin(), |
| 185 | [](unsigned char c) { return std::tolower(c); }); |
| 186 | return result; |
| 187 | } |
| 188 | |
| 189 | std::string AsciiToUpper(std::string_view value) { |
| 190 | // TODO: ASCII validation |