Lines Matching refs:ch

533   int ch;  in __utf8_mbtowc()  local
546 ch = t[i++]; in __utf8_mbtowc()
548 ch = state->__value.__wchb[0]; in __utf8_mbtowc()
550 if (ch == '\0') in __utf8_mbtowc()
557 if (ch <= 0x7f) in __utf8_mbtowc()
561 *pwc = ch; in __utf8_mbtowc()
564 if (ch >= 0xc0 && ch <= 0xdf) in __utf8_mbtowc()
567 state->__value.__wchb[0] = ch; in __utf8_mbtowc()
574 ch = t[i++]; in __utf8_mbtowc()
575 if (ch < 0x80 || ch > 0xbf) in __utf8_mbtowc()
588 | (wchar_t)(ch & 0x3f); in __utf8_mbtowc()
591 if (ch >= 0xe0 && ch <= 0xef) in __utf8_mbtowc()
595 state->__value.__wchb[0] = ch; in __utf8_mbtowc()
602 ch = (state->__count == 1) ? t[i++] : state->__value.__wchb[1]; in __utf8_mbtowc()
603 if (state->__value.__wchb[0] == 0xe0 && ch < 0xa0) in __utf8_mbtowc()
609 if (ch < 0x80 || ch > 0xbf) in __utf8_mbtowc()
614 state->__value.__wchb[1] = ch; in __utf8_mbtowc()
621 ch = t[i++]; in __utf8_mbtowc()
622 if (ch < 0x80 || ch > 0xbf) in __utf8_mbtowc()
630 | (wchar_t)(ch & 0x3f); in __utf8_mbtowc()
634 if (ch >= 0xf0 && ch <= 0xf4) in __utf8_mbtowc()
638 state->__value.__wchb[0] = ch; in __utf8_mbtowc()
645 ch = (state->__count == 1) ? t[i++] : state->__value.__wchb[1]; in __utf8_mbtowc()
646 if ((state->__value.__wchb[0] == 0xf0 && ch < 0x90) in __utf8_mbtowc()
647 || (state->__value.__wchb[0] == 0xf4 && ch >= 0x90)) in __utf8_mbtowc()
653 if (ch < 0x80 || ch > 0xbf) in __utf8_mbtowc()
658 state->__value.__wchb[1] = ch; in __utf8_mbtowc()
665 ch = (state->__count == 2) ? t[i++] : state->__value.__wchb[2]; in __utf8_mbtowc()
666 if (ch < 0x80 || ch > 0xbf) in __utf8_mbtowc()
671 state->__value.__wchb[2] = ch; in __utf8_mbtowc()
698 ch = t[i++]; in __utf8_mbtowc()
699 if (ch < 0x80 || ch > 0xbf) in __utf8_mbtowc()
707 | ((uint32_t)ch & 0x3f); in __utf8_mbtowc()
734 int ch; in __sjis_mbtowc() local
746 ch = t[i++]; in __sjis_mbtowc()
749 if (_issjis1 (ch)) in __sjis_mbtowc()
751 state->__value.__wchb[0] = ch; in __sjis_mbtowc()
755 ch = t[i++]; in __sjis_mbtowc()
760 if (_issjis2 (ch)) in __sjis_mbtowc()
762 *pwc = (((wchar_t)state->__value.__wchb[0]) << 8) + (wchar_t)ch; in __sjis_mbtowc()
790 int ch; in __eucjp_mbtowc() local
802 ch = t[i++]; in __eucjp_mbtowc()
805 if (_iseucjp1 (ch)) in __eucjp_mbtowc()
807 state->__value.__wchb[0] = ch; in __eucjp_mbtowc()
811 ch = t[i++]; in __eucjp_mbtowc()
816 if (_iseucjp2 (ch)) in __eucjp_mbtowc()
820 state->__value.__wchb[1] = ch; in __eucjp_mbtowc()
824 ch = t[i++]; in __eucjp_mbtowc()
828 *pwc = (((wchar_t)state->__value.__wchb[0]) << 8) + (wchar_t)ch; in __eucjp_mbtowc()
841 if (_iseucjp2 (ch)) in __eucjp_mbtowc()
844 + (wchar_t)(ch & 0x7f); in __eucjp_mbtowc()
874 JIS_CHAR_TYPE ch; in __jis_mbtowc() local
900 ch = ESCAPE; in __jis_mbtowc()
903 ch = DOLLAR; in __jis_mbtowc()
906 ch = AT; in __jis_mbtowc()
909 ch = BRACKET; in __jis_mbtowc()
912 ch = B; in __jis_mbtowc()
915 ch = J; in __jis_mbtowc()
918 ch = NUL; in __jis_mbtowc()
922 ch = JIS_CHAR; in __jis_mbtowc()
924 ch = OTHER; in __jis_mbtowc()
927 action = JIS_action_table[curr_state][ch]; in __jis_mbtowc()
928 curr_state = JIS_state_table[curr_state][ch]; in __jis_mbtowc()