Lines Matching defs:octet
2668 unsigned char octet = 0;
2670 /* Check for a URI-escaped octet. */
2679 start_mark, "did not find URI escaped octet");
2682 /* Get the octet. */
2684 octet = (AS_HEX_AT(parser->buffer, 1) << 4) + AS_HEX_AT(parser->buffer, 2);
2686 /* If it is the leading octet, determine the length of the UTF-8 sequence. */
2690 width = (octet & 0x80) == 0x00 ? 1 :
2691 (octet & 0xE0) == 0xC0 ? 2 :
2692 (octet & 0xF0) == 0xE0 ? 3 :
2693 (octet & 0xF8) == 0xF0 ? 4 : 0;
2697 start_mark, "found an incorrect leading UTF-8 octet");
2702 /* Check if the trailing octet is correct. */
2704 if ((octet & 0xC0) != 0x80) {
2707 start_mark, "found an incorrect trailing UTF-8 octet");
2711 /* Copy the octet and move the pointers. */
2713 *(string->pointer++) = octet;