| 272 | } |
| 273 | |
| 274 | std::string PrintableChar(uint16_t ch) { |
| 275 | std::string result; |
| 276 | result += '\''; |
| 277 | if (NeedsEscaping(ch)) { |
| 278 | StringAppendF(&result, "\\u%04x", ch); |
| 279 | } else { |
| 280 | result += static_cast<std::string::value_type>(ch); |
| 281 | } |
| 282 | result += '\''; |
| 283 | return result; |
| 284 | } |
| 285 | |
| 286 | std::string PrintableString(const char* utf) { |
| 287 | std::string result; |
nothing calls this directly
no test coverage detected