MCPcopy Create free account
hub / github.com/colmap/colmap / UTF8ToPlatform

Function UTF8ToPlatform

src/colmap/util/string.cc:298–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296}
297
298std::string UTF8ToPlatform(const std::string& str) {
299#ifdef _WIN32
300 return internal::UTF8ToCodePageWin(str, GetACP());
301#else
302 // On POSIX, assume UTF-8 is the system encoding.
303 return str;
304#endif
305}
306
307} // namespace colmap

Callers 1

TESTFunction · 0.85

Calls 1

UTF8ToCodePageWinFunction · 0.85

Tested by 1

TESTFunction · 0.68