Lines Matching refs:leadByte
71 * leadByte is evaluated multiple times.
74 * #define U8_COUNT_TRAIL_BYTES(leadByte) (utf8_countTrailBytes[leadByte])
75 * leadByte was evaluated exactly once.
77 * @param leadByte The first byte of a UTF-8 sequence. Must be 0..0xff.
80 #define U8_COUNT_TRAIL_BYTES(leadByte) \
81 ((uint8_t)(leadByte)<0xf0 ? \
82 ((uint8_t)(leadByte)>=0xc0)+((uint8_t)(leadByte)>=0xe0) : \
83 (uint8_t)(leadByte)<0xfe ? 3+((uint8_t)(leadByte)>=0xf8)+((uint8_t)(leadByte)>=0xfc) : 0)
88 * leadByte might be evaluated multiple times.
93 * @param leadByte The first byte of a UTF-8 sequence. Must be 0..0xff.
96 #define U8_COUNT_TRAIL_BYTES_UNSAFE(leadByte) \
97 (((leadByte)>=0xc0)+((leadByte)>=0xe0)+((leadByte)>=0xf0))
106 #define U8_MASK_LEAD_BYTE(leadByte, countTrailBytes) ((leadByte)&=(1<<(6-(countTrailBytes)))-1)