| 69 | */ |
| 70 | template <typename T> |
| 71 | std::basic_string<T> lowercase(const std::basic_string<T>& input) { |
| 72 | std::basic_string<T> output = input; |
| 73 | std::transform( |
| 74 | output.begin(), |
| 75 | output.end(), |
| 76 | output.begin(), |
| 77 | [](const T character) { return static_cast<T>(std::tolower(character)); } |
| 78 | ); |
| 79 | return std::move(output); |
| 80 | } |
| 81 | |
| 82 | /** @return true when input only has hex characters: [a-z], [A-Z], [0-9] */ |
| 83 | bool isAsciiHexString(const std::string& input); |
no outgoing calls
no test coverage detected