Lines Matching defs:CodePoint
798 /// Returns true if CodePoint represents a printable ASCII character.
799 static bool isAsciiPrintable(uint64_t CodePoint) {
800 return 0x20 <= CodePoint && CodePoint <= 0x7e;
806 uint64_t CodePoint = parseHexNumber(HexDigits);
813 switch (CodePoint) {
833 if (isAsciiPrintable(CodePoint)) {
834 char C = CodePoint;
1069 // CodePoint is not a valid unicode scalar value.
1070 static inline bool encodeUTF8(size_t CodePoint, char *Output) {
1071 if (0xD800 <= CodePoint && CodePoint <= 0xDFFF)
1074 if (CodePoint <= 0x7F) {
1075 Output[0] = CodePoint;
1079 if (CodePoint <= 0x7FF) {
1080 Output[0] = 0xC0 | ((CodePoint >> 6) & 0x3F);
1081 Output[1] = 0x80 | (CodePoint & 0x3F);
1085 if (CodePoint <= 0xFFFF) {
1086 Output[0] = 0xE0 | (CodePoint >> 12);
1087 Output[1] = 0x80 | ((CodePoint >> 6) & 0x3F);
1088 Output[2] = 0x80 | (CodePoint & 0x3F);
1092 if (CodePoint <= 0x10FFFF) {
1093 Output[0] = 0xF0 | (CodePoint >> 18);
1094 Output[1] = 0x80 | ((CodePoint >> 12) & 0x3F);
1095 Output[2] = 0x80 | ((CodePoint >> 6) & 0x3F);
1096 Output[3] = 0x80 | (CodePoint & 0x3F);