Lines Matching refs:byte
212 int byte; in gdTcl_UtfToUniChar() local
215 byte = *((unsigned char *) str); in gdTcl_UtfToUniChar()
216 if (byte == '&') { in gdTcl_UtfToUniChar()
219 byte = *((unsigned char *) (str + 1)); in gdTcl_UtfToUniChar()
220 if (byte == '#') { in gdTcl_UtfToUniChar()
221 byte = *((unsigned char *) (str + 2)); in gdTcl_UtfToUniChar()
222 if (byte == 'x' || byte == 'X') { in gdTcl_UtfToUniChar()
224 byte = *((unsigned char *) (str + i)); in gdTcl_UtfToUniChar()
225 if (byte >= 'A' && byte <= 'F') in gdTcl_UtfToUniChar()
226 byte = byte - 'A' + 10; in gdTcl_UtfToUniChar()
227 else if (byte >= 'a' && byte <= 'f') in gdTcl_UtfToUniChar()
228 byte = byte - 'a' + 10; in gdTcl_UtfToUniChar()
229 else if (byte >= '0' && byte <= '9') in gdTcl_UtfToUniChar()
230 byte = byte - '0'; in gdTcl_UtfToUniChar()
233 n = (n * 16) + byte; in gdTcl_UtfToUniChar()
237 byte = *((unsigned char *) (str + i)); in gdTcl_UtfToUniChar()
238 if (byte >= '0' && byte <= '9') { in gdTcl_UtfToUniChar()
239 n = (n * 10) + (byte - '0'); in gdTcl_UtfToUniChar()
245 if (byte == ';') { in gdTcl_UtfToUniChar()
254 byte = *((unsigned char *) str); in gdTcl_UtfToUniChar()
256 if (0xA1 <= byte && byte <= 0xFE) { in gdTcl_UtfToUniChar()
259 ku = (byte & 0x7F) - 0x20; in gdTcl_UtfToUniChar()
262 *chPtr = (Tcl_UniChar) byte; in gdTcl_UtfToUniChar()
270 if (byte < 0xC0) { in gdTcl_UtfToUniChar()
277 *chPtr = (Tcl_UniChar) byte; in gdTcl_UtfToUniChar()
279 } else if (byte < 0xE0) { in gdTcl_UtfToUniChar()
283 *chPtr = (Tcl_UniChar) (((byte & 0x1F) << 6) | (str[1] & 0x3F)); in gdTcl_UtfToUniChar()
291 *chPtr = (Tcl_UniChar) byte; in gdTcl_UtfToUniChar()
293 } else if (byte < 0xF0) { in gdTcl_UtfToUniChar()
297 *chPtr = (Tcl_UniChar) (((byte & 0x0F) << 12) | ((str[1] & 0x3F) << 6) | (str[2] & 0x3F)); in gdTcl_UtfToUniChar()
302 *chPtr = (Tcl_UniChar) byte; in gdTcl_UtfToUniChar()
309 total = totalBytes[byte]; in gdTcl_UtfToUniChar()
313 ch = byte & (0x3F >> trail); in gdTcl_UtfToUniChar()
317 *chPtr = byte; in gdTcl_UtfToUniChar()
330 *chPtr = (Tcl_UniChar) byte; in gdTcl_UtfToUniChar()