Converts a wide C string to an std::string using the UTF-8 encoding. NULL will be converted to "(null)".
| 3340 | // Converts a wide C string to an std::string using the UTF-8 encoding. |
| 3341 | // NULL will be converted to "(null)". |
| 3342 | std::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. |
nothing calls this directly
no test coverage detected