MCPcopy Create free account
hub / github.com/OSGeo/PROJ / WStringToUTF8

Function WStringToUTF8

src/filemanager.cpp:549–555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

547// ---------------------------------------------------------------------------
548
549static std::string WStringToUTF8(const std::wstring &wstr) {
550 std::string str;
551 str.resize(wstr.size());
552 str.resize(utf8fromwc(&str[0], static_cast<unsigned>(str.size() + 1),
553 wstr.data(), static_cast<unsigned>(wstr.size())));
554 return str;
555}
556
557// ---------------------------------------------------------------------------
558

Calls 2

utf8fromwcFunction · 0.85
sizeMethod · 0.80

Tested by

no test coverage detected