Converts a wide C string to an std::string using the UTF-8 encoding. NULL will be converted to "(null)".
| 2060 | // Converts a wide C string to an std::string using the UTF-8 encoding. |
| 2061 | // NULL will be converted to "(null)". |
| 2062 | std::string String::ShowWideCString(const wchar_t* wide_c_str) { |
| 2063 | if (wide_c_str == nullptr) return "(null)"; |
| 2064 | |
| 2065 | return internal::WideStringToUtf8(wide_c_str, -1); |
| 2066 | } |
| 2067 | |
| 2068 | // Compares two wide C strings. Returns true if and only if they have the |
| 2069 | // same content. |
nothing calls this directly
no test coverage detected