Converts a wide C string to an std::string using the UTF-8 encoding. NULL will be converted to "(null)".
| 3007 | // Converts a wide C string to an std::string using the UTF-8 encoding. |
| 3008 | // NULL will be converted to "(null)". |
| 3009 | std::string String::ShowWideCString(const wchar_t * wide_c_str) { |
| 3010 | if (wide_c_str == NULL) return "(null)"; |
| 3011 | |
| 3012 | return internal::WideStringToUtf8(wide_c_str, -1); |
| 3013 | } |
| 3014 | |
| 3015 | // Compares two wide C strings. Returns true iff they have the same |
| 3016 | // content. |
nothing calls this directly
no test coverage detected