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

Function PlatformToUTF8

src/colmap/util/string.cc:289–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287}
288
289std::string PlatformToUTF8(const std::string& str) {
290#ifdef _WIN32
291 return internal::CodePageToUTF8Win(str, GetACP());
292#else
293 // Assume UTF-8 on POSIX systems.
294 return str;
295#endif
296}
297
298std::string UTF8ToPlatform(const std::string& str) {
299#ifdef _WIN32

Callers 2

OpenMethod · 0.85
TESTFunction · 0.85

Calls 1

CodePageToUTF8WinFunction · 0.85

Tested by 1

TESTFunction · 0.68