Converts a wide C string to a String using the UTF-8 encoding. NULL will be converted to "(null)".
| 2831 | // Converts a wide C string to a String using the UTF-8 encoding. |
| 2832 | // NULL will be converted to "(null)". |
| 2833 | String String::ShowWideCString(const wchar_t * wide_c_str) { |
| 2834 | if (wide_c_str == NULL) return String("(null)"); |
| 2835 | |
| 2836 | return String(internal::WideStringToUtf8(wide_c_str, -1).c_str()); |
| 2837 | } |
| 2838 | |
| 2839 | // Similar to ShowWideCString(), except that this function encloses |
| 2840 | // the converted string in double quotes. |
nothing calls this directly
no test coverage detected