Lines Matching refs:byte1
210 unsigned byte1; in utf8sToUtf8m() local
212 byte1 = (unsigned char)string[i]; in utf8sToUtf8m()
215 if ( (byte1 & 0x80) == 0 ) { /* 1byte encoding */ in utf8sToUtf8m()
216 if ( byte1 == 0 ) { in utf8sToUtf8m()
222 newString[j++] = byte1; in utf8sToUtf8m()
224 } else if ( (byte1 & 0xE0) == 0xC0 ) { /* 2byte encoding */ in utf8sToUtf8m()
225 newString[j++] = byte1; in utf8sToUtf8m()
227 } else if ( (byte1 & 0xF0) == 0xE0 ) { /* 3byte encoding */ in utf8sToUtf8m()
228 newString[j++] = byte1; in utf8sToUtf8m()
231 } else if ( (byte1 & 0xF8) == 0xF0 ) { /* 4byte encoding */ in utf8sToUtf8m()
240 u21 = (byte1 & 0x07) << 18; in utf8sToUtf8m()
274 unsigned byte1, byte2, byte3, byte4, byte5, byte6; in utf8mToUtf8sLength() local
276 byte1 = (unsigned char)string[i]; in utf8mToUtf8sLength()
277 if ( (byte1 & 0x80) == 0 ) { /* 1byte encoding */ in utf8mToUtf8sLength()
279 } else if ( (byte1 & 0xE0) == 0xC0 ) { /* 2byte encoding */ in utf8mToUtf8sLength()
285 if ( byte1 != 0xC0 || byte2 != 0x80 ) { in utf8mToUtf8sLength()
290 } else if ( (byte1 & 0xF0) == 0xE0 ) { /* 3byte encoding */ in utf8mToUtf8sLength()
300 if ( (i+3) < length && byte1 == 0xED && (byte2 & 0xF0) == 0xA0 ) { in utf8mToUtf8sLength()
341 unsigned byte1, byte2, byte3, byte4, byte5, byte6; in utf8mToUtf8s() local
343 byte1 = (unsigned char)string[i]; in utf8mToUtf8s()
344 if ( (byte1 & 0x80) == 0 ) { /* 1byte encoding */ in utf8mToUtf8s()
346 newString[j++] = byte1; in utf8mToUtf8s()
347 } else if ( (byte1 & 0xE0) == 0xC0 ) { /* 2byte encoding */ in utf8mToUtf8s()
349 if ( byte1 != 0xC0 || byte2 != 0x80 ) { in utf8mToUtf8s()
350 newString[j++] = byte1; in utf8mToUtf8s()
355 } else if ( (byte1 & 0xF0) == 0xE0 ) { /* 3byte encoding */ in utf8mToUtf8s()
358 if ( i+3 < length && byte1 == 0xED && (byte2 & 0xF0) == 0xA0 ) { in utf8mToUtf8s()
387 newString[j++] = byte1; in utf8mToUtf8s()