MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / ShowWideCString

Method ShowWideCString

tests/gtest/gtest-all.cc:3342–3346  ·  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

3340// Converts a wide C string to an std::string using the UTF-8 encoding.
3341// NULL will be converted to "(null)".
3342std::string String::ShowWideCString(const wchar_t * wide_c_str) {
3343 if (wide_c_str == nullptr) return "(null)";
3344
3345 return internal::WideStringToUtf8(wide_c_str, -1);
3346}
3347
3348// Compares two wide C strings. Returns true iff they have the same
3349// content.

Callers

nothing calls this directly

Calls 1

WideStringToUtf8Function · 0.85

Tested by

no test coverage detected