MCPcopy Create free account
hub / github.com/apache/singa / ShowWideCString

Method ShowWideCString

test/gtest/gtest-all.cc:3009–3013  ·  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

3007// Converts a wide C string to an std::string using the UTF-8 encoding.
3008// NULL will be converted to "(null)".
3009std::string String::ShowWideCString(const wchar_t * wide_c_str) {
3010 if (wide_c_str == NULL) return "(null)";
3011
3012 return internal::WideStringToUtf8(wide_c_str, -1);
3013}
3014
3015// Compares two wide C strings. Returns true iff they have the same
3016// content.

Callers

nothing calls this directly

Calls 1

WideStringToUtf8Function · 0.85

Tested by

no test coverage detected