Home | History | Annotate | Download | only in charset

Lines Matching refs:lead

10      * Counts the trail bytes for a UTF-8 lead byte.
27 * Counts the bytes of any whole valid sequence for a UTF-8 lead byte.
48 * Each bit indicates whether one lead byte + first trail byte pair starts a valid sequence.
49 * Lead byte E0..EF bits 3..0 are used as data int index,
61 * @param lead E0..EF
63 * @return true if lead byte E0..EF and first trail byte 00..FF start a valid sequence.
65 static boolean isValidLead3AndT1(int lead, byte t1) {
66 return (U8_LEAD3_T1_BITS[lead & 0xf] & (1 << ((t1 & 0xff) >> 5))) != 0;
71 * Each bit indicates whether one lead byte + first trail byte pair starts a valid sequence.
72 * Lead byte F0..F4 bits 2..0 are used as data int index,
84 * @param lead F0..F4
86 * @return true if lead byte F0..F4 and first trail byte 00..FF start a valid sequence.
88 static boolean isValidLead4AndT1(int lead, byte t1) {
89 return (U8_LEAD4_T1_BITS[lead & 7] & (1 << ((t1 & 0xff) >> 4))) != 0;
103 * Is this code unit (byte) a UTF-8 lead byte?
106 * @return true if c is a lead byte
154 * @param prev Must be the preceding lead byte if i==1 and length>=3;
156 * @param t The i-th byte following the lead byte.
158 * @param length The length (2..4) of the byte sequence according to the lead byte.
162 // The first trail byte after a 3- or 4-byte lead byte
163 // needs to be validated together with its lead byte.