MCPcopy Create free account
hub / github.com/asmuth/clip / convertUTF32To8

Method convertUTF32To8

src/utils/stringutil.cc:433–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

431}
432
433std::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
444std::basic_string<char> StringUtil::convertUTF16To8(
445 const std::basic_string<char16_t>& str) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected