Lines Matching refs:codepoint
323 unsigned codepoint = static_cast<unsigned char>(*c); in valueToQuotedStringN() local
324 if (codepoint < 0x20) { in valueToQuotedStringN()
325 appendHex(result, codepoint); in valueToQuotedStringN()
327 appendRaw(result, codepoint); in valueToQuotedStringN()
330 unsigned codepoint = utf8ToCodepoint(c, end); // modifies `c` in valueToQuotedStringN() local
331 if (codepoint < 0x20) { in valueToQuotedStringN()
332 appendHex(result, codepoint); in valueToQuotedStringN()
333 } else if (codepoint < 0x80) { in valueToQuotedStringN()
334 appendRaw(result, codepoint); in valueToQuotedStringN()
335 } else if (codepoint < 0x10000) { in valueToQuotedStringN()
337 appendHex(result, codepoint); in valueToQuotedStringN()
340 codepoint -= 0x10000; in valueToQuotedStringN()
341 appendHex(result, 0xd800 + ((codepoint >> 10) & 0x3ff)); in valueToQuotedStringN()
342 appendHex(result, 0xdc00 + (codepoint & 0x3ff)); in valueToQuotedStringN()