MCPcopy Create free account
hub / github.com/apache/arrow / UTF8ToWideStringInternal

Function UTF8ToWideStringInternal

cpp/src/arrow/util/utf8.cc:129–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127// so call into a vendored utf8 implementation instead.
128
129std::wstring UTF8ToWideStringInternal(std::string_view source) {
130 std::wstring ws;
131#if WCHAR_MAX > 0xFFFF
132 ::utf8::utf8to32(source.begin(), source.end(), std::back_inserter(ws));
133#else
134 ::utf8::utf8to16(source.begin(), source.end(), std::back_inserter(ws));
135#endif
136 return ws;
137}
138
139std::string WideStringToUTF8Internal(const std::wstring& source) {
140 std::string s;

Callers 1

UTF8ToWideStringFunction · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected