MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / ShowWideCString

Method ShowWideCString

source/test/gtest/src/gtest.cc:2062–2066  ·  view source on GitHub ↗

Converts a wide C string to an std::string using the UTF-8 encoding. NULL will be converted to "(null)".

Source from the content-addressed store, hash-verified

2060// Converts a wide C string to an std::string using the UTF-8 encoding.
2061// NULL will be converted to "(null)".
2062std::string String::ShowWideCString(const wchar_t* wide_c_str) {
2063 if (wide_c_str == nullptr) return "(null)";
2064
2065 return internal::WideStringToUtf8(wide_c_str, -1);
2066}
2067
2068// Compares two wide C strings. Returns true if and only if they have the
2069// same content.

Callers

nothing calls this directly

Calls 1

WideStringToUtf8Function · 0.85

Tested by

no test coverage detected