Converts a wide C string to an std::string using the UTF-8 encoding. NULL will be converted to "(null)".
| 1523 | // Converts a wide C string to an std::string using the UTF-8 encoding. |
| 1524 | // NULL will be converted to "(null)". |
| 1525 | std::string String::ShowWideCString(const wchar_t * wide_c_str) { |
| 1526 | if (wide_c_str == NULL) return "(null)"; |
| 1527 | |
| 1528 | return internal::WideStringToUtf8(wide_c_str, -1); |
| 1529 | } |
| 1530 | |
| 1531 | // Compares two wide C strings. Returns true iff they have the same |
| 1532 | // content. |
nothing calls this directly
no test coverage detected