MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / ShowWideCString

Method ShowWideCString

rtpose_wrapper/src/gtest/gtest-all.cpp:2833–2837  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2831// Converts a wide C string to a String using the UTF-8 encoding.
2832// NULL will be converted to "(null)".
2833String String::ShowWideCString(const wchar_t * wide_c_str) {
2834 if (wide_c_str == NULL) return String("(null)");
2835
2836 return String(internal::WideStringToUtf8(wide_c_str, -1).c_str());
2837}
2838
2839// Similar to ShowWideCString(), except that this function encloses
2840// the converted string in double quotes.

Callers

nothing calls this directly

Calls 2

WideStringToUtf8Function · 0.85
StringFunction · 0.70

Tested by

no test coverage detected