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

Method ShowWideCString

tests/external/gmock-1.7.0/gtest/src/gtest.cc:1525–1529  ·  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

1523// Converts a wide C string to an std::string using the UTF-8 encoding.
1524// NULL will be converted to "(null)".
1525std::string String::ShowWideCString(const wchar_t * wide_c_str) {
1526 if (wide_c_str == NULL) return "(null)";
1527
1528 return internal::WideStringToUtf8(wide_c_str, -1);
1529}
1530
1531// Compares two wide C strings. Returns true iff they have the same
1532// content.

Callers

nothing calls this directly

Calls 1

WideStringToUtf8Function · 0.70

Tested by

no test coverage detected