| 442 | } |
| 443 | |
| 444 | std::basic_string<char> StringUtil::convertUTF16To8( |
| 445 | const std::basic_string<char16_t>& str) { |
| 446 | String out; |
| 447 | |
| 448 | for (const auto& c : str) { |
| 449 | UTF8::encodeCodepoint(c, &out); |
| 450 | } |
| 451 | |
| 452 | return out; |
| 453 | } |
| 454 | |
| 455 | size_t StringUtil::countUTF8CodePoints(const std::string& str) { |
| 456 | size_t count = 0; |
nothing calls this directly
no outgoing calls
no test coverage detected