Lines Matching refs:ch
279 char ch = *p++; in PrettyDescriptor() local
280 if (ch == '/') { in PrettyDescriptor()
281 ch = '.'; in PrettyDescriptor()
283 result.push_back(ch); in PrettyDescriptor()
559 std::string PrintableChar(uint16_t ch) { in PrintableChar() argument
562 if (NeedsEscaping(ch)) { in PrintableChar()
563 StringAppendF(&result, "\\u%04x", ch); in PrintableChar()
565 result += ch; in PrintableChar()
577 uint16_t ch = GetUtf16FromUtf8(&p); in PrintableString() local
578 if (ch == '\\') { in PrintableString()
580 } else if (ch == '\n') { in PrintableString()
582 } else if (ch == '\r') { in PrintableString()
584 } else if (ch == '\t') { in PrintableString()
586 } else if (NeedsEscaping(ch)) { in PrintableString()
587 StringAppendF(&result, "\\u%04x", ch); in PrintableString()
589 result += ch; in PrintableString()
602 uint16_t ch = GetUtf16FromUtf8(&cp); in MangleForJni() local
603 if ((ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z') || (ch >= '0' && ch <= '9')) { in MangleForJni()
604 result.push_back(ch); in MangleForJni()
605 } else if (ch == '.' || ch == '/') { in MangleForJni()
607 } else if (ch == '_') { in MangleForJni()
609 } else if (ch == ';') { in MangleForJni()
611 } else if (ch == '[') { in MangleForJni()
614 StringAppendF(&result, "_0%04x", ch); in MangleForJni()