Lines Matching defs:codepoint
69 static bool isprint32(char32_t codepoint) {
70 if (codepoint <= 0x1F || codepoint == 0x7F) // C0
74 if (codepoint >= 0x80 && codepoint <= 0x9F) // C1
78 if (codepoint == 0x2028 || codepoint == 0x2029) // line/paragraph separators
82 if (codepoint == 0x200E || codepoint == 0x200F ||
83 (codepoint >= 0x202A &&
84 codepoint <= 0x202E)) // bidirectional text control
88 if (codepoint >= 0xFFF9 &&
89 codepoint <= 0xFFFF) // interlinears and generally specials
179 // Convert the valid utf8 sequence to a utf32 codepoint. This cannot fail.
180 llvm::UTF32 codepoint = 0;
183 &buffer_for_conversion, buffer_end, &codepoint, llvm::strictConversion);
192 DecodedCharBuffer retval = attemptASCIIEscape(codepoint, escape_style);
195 if (isprint32(codepoint))
204 escaped_len = snprintf((char *)data, max_buffer_size, "\\U%08x", codepoint);
208 escaped_len = snprintf((char *)data, max_buffer_size, "\\u{%x}", codepoint);