Lines Matching defs:code_point
4130 uint32_t code_point = 0;
4157 code_point = (byte & 0b00011111) << 6 | (data[pos + 1] & 0b00111111);
4158 if ((code_point < 0x80) || (0x7ff < code_point)) { return false; }
4165 code_point = (byte & 0b00001111) << 12 |
4168 if ((code_point < 0x800) || (0xffff < code_point) ||
4169 (0xd7ff < code_point && code_point < 0xe000)) {
4179 code_point =
4182 if (code_point <= 0xffff || 0x10ffff < code_point) { return false; }
4196 uint32_t code_point = 0;
4223 code_point = (byte & 0b00011111) << 6 | (data[pos + 1] & 0b00111111);
4224 if ((code_point < 0x80) || (0x7ff < code_point)) { return result(error_code::OVERLONG, pos); }
4231 code_point = (byte & 0b00001111) << 12 |
4234 if ((code_point < 0x800) || (0xffff < code_point)) { return result(error_code::OVERLONG, pos);}
4235 if (0xd7ff < code_point && code_point < 0xe000) { return result(error_code::SURROGATE, pos); }
4243 code_point =
4246 if (code_point <= 0xffff) { return result(error_code::OVERLONG, pos); }
4247 if (0x10ffff < code_point) { return result(error_code::TOO_LARGE, pos); }
11412 uint16_t code_point = uint16_t(((leading_byte &0b00011111) << 6) | (data[pos + 1] &0b00111111));
11414 code_point = utf16::swap_bytes(uint16_t(code_point));
11416 *utf16_output++ = char16_t(code_point);
11422 uint16_t code_point = uint16_t(((leading_byte &0b00001111) << 12) | ((data[pos + 1] &0b00111111) << 6) | (data[pos + 2] &0b00111111));
11424 code_point = utf16::swap_bytes(uint16_t(code_point));
11426 *utf16_output++ = char16_t(code_point);
11431 uint32_t code_point = ((leading_byte & 0b00000111) << 18 )| ((data[pos + 1] &0b00111111) << 12)
11433 code_point -= 0x10000;
11434 uint16_t high_surrogate = uint16_t(0xD800 + (code_point >> 10));
11435 uint16_t low_surrogate = uint16_t(0xDC00 + (code_point & 0x3FF));
11502 uint32_t code_point = (leading_byte & 0b00011111) << 6 | (data[pos + 1] & 0b00111111);
11503 if (code_point < 0x80 || 0x7ff < code_point) { return 0; }
11505 code_point = uint32_t(utf16::swap_bytes(uint16_t(code_point)));
11507 *utf16_output++ = char16_t(code_point);
11517 uint32_t code_point = (leading_byte & 0b00001111) << 12 |
11520 if (code_point < 0x800 || 0xffff < code_point ||
11521 (0xd7ff < code_point && code_point < 0xe000)) {
11525 code_point = uint32_t(utf16::swap_bytes(uint16_t(code_point)));
11527 *utf16_output++ = char16_t(code_point);
11537 uint32_t code_point =
11540 if (code_point <= 0xffff || 0x10ffff < code_point) { return 0; }
11541 code_point -= 0x10000;
11542 uint16_t high_surrogate = uint16_t(0xD800 + (code_point >> 10));
11543 uint16_t low_surrogate = uint16_t(0xDC00 + (code_point & 0x3FF));
11591 uint32_t code_point = (leading_byte & 0b00011111) << 6 | (data[pos + 1] & 0b00111111);
11592 if (code_point < 0x80 || 0x7ff < code_point) { return result(error_code::OVERLONG, pos); }
11594 code_point = uint32_t(utf16::swap_bytes(uint16_t(code_point)));
11596 *utf16_output++ = char16_t(code_point);
11606 uint32_t code_point = (leading_byte & 0b00001111) << 12 |
11609 if ((code_point < 0x800) || (0xffff < code_point)) { return result(error_code::OVERLONG, pos);}
11610 if (0xd7ff < code_point && code_point < 0xe000) { return result(error_code::SURROGATE, pos); }
11612 code_point = uint32_t(utf16::swap_bytes(uint16_t(code_point)));
11614 *utf16_output++ = char16_t(code_point);
11624 uint32_t code_point =
11627 if (code_point <= 0xffff) { return result(error_code::OVERLONG, pos); }
11628 if (0x10ffff < code_point) { return result(error_code::TOO_LARGE, pos); }
11629 code_point -= 0x10000;
11630 uint16_t high_surrogate = uint16_t(0xD800 + (code_point >> 10));
11631 uint16_t low_surrogate = uint16_t(0xDC00 + (code_point & 0x3FF));
11813 uint32_t code_point = (leading_byte & 0b00011111) << 6 | (data[pos + 1] & 0b00111111);
11814 if (code_point < 0x80 || 0x7ff < code_point) { return 0; }
11815 *utf32_output++ = char32_t(code_point);
11824 uint32_t code_point = (leading_byte & 0b00001111) << 12 |
11827 if (code_point < 0x800 || 0xffff < code_point ||
11828 (0xd7ff < code_point && code_point < 0xe000)) {
11831 *utf32_output++ = char32_t(code_point);
11841 uint32_t code_point =
11844 if (code_point <= 0xffff || 0x10ffff < code_point) { return 0; }
11845 *utf32_output++ = char32_t(code_point);
11885 uint32_t code_point = (leading_byte & 0b00011111) << 6 | (data[pos + 1] & 0b00111111);
11886 if (code_point < 0x80 || 0x7ff < code_point) { return result(error_code::OVERLONG, pos); }
11887 *utf32_output++ = char32_t(code_point);
11896 uint32_t code_point = (leading_byte & 0b00001111) << 12 |
11899 if (code_point < 0x800 || 0xffff < code_point) { return result(error_code::OVERLONG, pos); }
11900 if (0xd7ff < code_point && code_point < 0xe000) { return result(error_code::SURROGATE, pos); }
11901 *utf32_output++ = char32_t(code_point);
11911 uint32_t code_point =
11914 if (code_point <= 0xffff) { return result(error_code::OVERLONG, pos); }
11915 if (0x10ffff < code_point) { return result(error_code::TOO_LARGE, pos); }
11916 *utf32_output++ = char32_t(code_point);
12157 uint32_t code_point = (leading_byte & 0b00011111) << 6 | (data[pos + 1] & 0b00111111); // assembles the Unicode code point from the two bytes. It does this by discarding the leading 110 and 10 bits from the two bytes, shifting the remaining bits of the first byte, and then combining the results with a bitwise OR operation.
12158 if (code_point < 0x80 || 0xFF < code_point) {
12159 return 0; // We only care about the range 129-255 which is Non-ASCII latin1 characters. A code_point beneath 0x80 is invalid as it's already covered by bytes whose leading bit is zero.
12161 *latin_output++ = char(code_point);
12205 uint32_t code_point = (leading_byte & 0b00011111) << 6 | (data[pos + 1] & 0b00111111); // assembles the Unicode code point from the two bytes. It does this by discarding the leading 110 and 10 bits from the two bytes, shifting the remaining bits of the first byte, and then combining the results with a bitwise OR operation.
12206 if (code_point < 0x80) {
12209 if (0xFF < code_point) {
12212 *latin_output++ = char(code_point);
12462 uint32_t code_point = (leading_byte & 0b00011111) << 6 | (data[pos + 1] & 0b00111111); // assembles the Unicode code point from the two bytes. It does this by discarding the leading 110 and 10 bits from the two bytes, shifting the remaining bits of the first byte, and then combining the results with a bitwise OR operation.
12463 *latin_output++ = char(code_point);