Similar to ShowWideCString(), except that this function encloses the converted string in double quotes.
| 2839 | // Similar to ShowWideCString(), except that this function encloses |
| 2840 | // the converted string in double quotes. |
| 2841 | String String::ShowWideCStringQuoted(const wchar_t* wide_c_str) { |
| 2842 | if (wide_c_str == NULL) return String("(null)"); |
| 2843 | |
| 2844 | return String::Format("L\"%s\"", |
| 2845 | String::ShowWideCString(wide_c_str).c_str()); |
| 2846 | } |
| 2847 | |
| 2848 | // Compares two wide C strings. Returns true iff they have the same |
| 2849 | // content. |