MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / ShowWideCString

Method ShowWideCString

test/common/gtest/gtest.cpp:3320–3324  ·  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

3318// Converts a wide C string to an std::string using the UTF-8 encoding.
3319// NULL will be converted to "(null)".
3320std::string String::ShowWideCString(const wchar_t * wide_c_str) {
3321 if (wide_c_str == NULL) return "(null)";
3322
3323 return internal::WideStringToUtf8(wide_c_str, -1);
3324}
3325
3326// Compares two wide C strings. Returns true iff they have the same
3327// content.

Callers

nothing calls this directly

Calls 1

WideStringToUtf8Function · 0.85

Tested by

no test coverage detected