Lines Matching refs:cjkstate
754 u_int8_t cjkstate;
756 cjkstate = 0;
770 if (cjkstate) {
771 bits &= cjkstate;
773 cjkstate = bits;
775 cjkstate = bits;
780 if (cjkstate) {
781 bits = cjkstate & CJK_KATAKANA;
783 cjkstate = bits;
785 cjkstate = CJK_KATAKANA;
795 if (cjkstate) {
796 bits = cjkstate & CJK_CHINESE;
798 cjkstate = bits;
800 cjkstate = CJK_CHINESE;
804 if (cjkstate == 0)
805 cjkstate = CJK_ALL;
833 if ((cjkstate == 0) || (cjkstate & CJK_JAPAN))
834 cjkstate = CJK_JAPAN;
836 cjkstate |= CJK_JAPAN;
863 if (cjkstate) {
864 if (powerof2(cjkstate)) {
865 cjk_lastunique = cjkstate;
866 return ((u_int32_t)cjk_encoding[cjkstate]);
871 if (cjkstate & CJK_JAPAN)
875 if (cjkstate & CJK_KOREAN)
879 if (cjkstate & CJK_CHINESE_TRAD)
881 if (cjkstate & CJK_CHINESE_SIMP)
885 if (cjkstate & CJK_CHINESE_SIMP)
887 if (cjkstate & CJK_CHINESE_TRAD)
893 if (cjkstate & cjk_lastunique)
894 cjkstate = cjk_lastunique;
898 return ((u_int32_t)cjk_encoding[cjkstate]);