* Get the length of an UTF-8 encoded string in number of characters * and thus not the number of bytes that the encoded string contains. * @param s The string to get the length for. * @return The length of the string in characters. */
| 347 | * @return The length of the string in characters. |
| 348 | */ |
| 349 | size_t Utf8StringLength(std::string_view str) |
| 350 | { |
| 351 | Utf8View view(str); |
| 352 | return std::distance(view.begin(), view.end()); |
| 353 | } |
| 354 | |
| 355 | bool strtolower(std::string &str, std::string::size_type offs) |
| 356 | { |
no test coverage detected