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