| 431 | } |
| 432 | |
| 433 | std::basic_string<char> StringUtil::convertUTF32To8( |
| 434 | const std::basic_string<char32_t>& str) { |
| 435 | String out; |
| 436 | |
| 437 | for (const auto& c : str) { |
| 438 | UTF8::encodeCodepoint(c, &out); |
| 439 | } |
| 440 | |
| 441 | return out; |
| 442 | } |
| 443 | |
| 444 | std::basic_string<char> StringUtil::convertUTF16To8( |
| 445 | const std::basic_string<char16_t>& str) { |
nothing calls this directly
no outgoing calls
no test coverage detected