MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / PrintableChar

Function PrintableChar

Bcore/src/main/cpp/dex/utf.cc:274–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274std::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
286std::string PrintableString(const char* utf) {
287 std::string result;

Callers

nothing calls this directly

Calls 2

NeedsEscapingFunction · 0.85
StringAppendFFunction · 0.85

Tested by

no test coverage detected