Lines Matching refs:coded
595 DBCHAR coded; in ksx1001_encoder() local
598 if (TRYMAP_ENC(cp949, coded, *data)) { in ksx1001_encoder()
599 if (!(coded & 0x8000)) in ksx1001_encoder()
600 return coded; in ksx1001_encoder()
634 DBCHAR coded; in jisx0208_encoder() local
639 else if (TRYMAP_ENC(jisxcommon, coded, *data)) { in jisx0208_encoder()
640 if (!(coded & 0x8000)) in jisx0208_encoder()
641 return coded; in jisx0208_encoder()
673 DBCHAR coded; in jisx0212_encoder() local
676 if (TRYMAP_ENC(jisxcommon, coded, *data)) { in jisx0212_encoder()
677 if (coded & 0x8000) in jisx0212_encoder()
678 return coded & 0x7fff; in jisx0212_encoder()
781 DBCHAR coded; in jisx0213_encoder() local
787 EMULATE_JISX0213_2000_ENCODE_EMP(coded, *data) in jisx0213_encoder()
788 else if (TRYMAP_ENC(jisx0213_emp, coded, (*data) & 0xffff)) in jisx0213_encoder()
789 return coded; in jisx0213_encoder()
794 EMULATE_JISX0213_2000_ENCODE_BMP(coded, *data) in jisx0213_encoder()
795 else if (TRYMAP_ENC(jisx0213_bmp, coded, *data)) { in jisx0213_encoder()
796 if (coded == MULTIC) in jisx0213_encoder()
799 else if (TRYMAP_ENC(jisxcommon, coded, *data)) { in jisx0213_encoder()
800 if (coded & 0x8000) in jisx0213_encoder()
805 return coded; in jisx0213_encoder()
808 coded = find_pairencmap((ucs2_t)data[0], (ucs2_t)data[1], in jisx0213_encoder()
810 if (coded != DBCINV) in jisx0213_encoder()
811 return coded; in jisx0213_encoder()
816 coded = find_pairencmap((ucs2_t)data[0], 0, in jisx0213_encoder()
818 if (coded == DBCINV) in jisx0213_encoder()
821 return coded; in jisx0213_encoder()
832 DBCHAR coded = jisx0213_encoder(data, length, (void *)2000); in jisx0213_2000_1_encoder() local
833 if (coded == MAP_UNMAPPABLE || coded == MAP_MULTIPLE_AVAIL) in jisx0213_2000_1_encoder()
834 return coded; in jisx0213_2000_1_encoder()
835 else if (coded & 0x8000) in jisx0213_2000_1_encoder()
838 return coded; in jisx0213_2000_1_encoder()
844 DBCHAR coded; in jisx0213_2000_1_encoder_paironly() local
847 coded = jisx0213_encoder(data, length, (void *)2000); in jisx0213_2000_1_encoder_paironly()
850 if (coded == MAP_MULTIPLE_AVAIL) in jisx0213_2000_1_encoder_paironly()
858 return coded; in jisx0213_2000_1_encoder_paironly()
867 DBCHAR coded = jisx0213_encoder(data, length, (void *)2000); in jisx0213_2000_2_encoder() local
868 if (coded == MAP_UNMAPPABLE || coded == MAP_MULTIPLE_AVAIL) in jisx0213_2000_2_encoder()
869 return coded; in jisx0213_2000_2_encoder()
870 else if (coded & 0x8000) in jisx0213_2000_2_encoder()
871 return coded & 0x7fff; in jisx0213_2000_2_encoder()
879 DBCHAR coded = jisx0213_encoder(data, length, NULL); in jisx0213_2004_1_encoder() local
880 if (coded == MAP_UNMAPPABLE || coded == MAP_MULTIPLE_AVAIL) in jisx0213_2004_1_encoder()
881 return coded; in jisx0213_2004_1_encoder()
882 else if (coded & 0x8000) in jisx0213_2004_1_encoder()
885 return coded; in jisx0213_2004_1_encoder()
891 DBCHAR coded; in jisx0213_2004_1_encoder_paironly() local
894 coded = jisx0213_encoder(data, length, NULL); in jisx0213_2004_1_encoder_paironly()
897 if (coded == MAP_MULTIPLE_AVAIL) in jisx0213_2004_1_encoder_paironly()
905 return coded; in jisx0213_2004_1_encoder_paironly()
914 DBCHAR coded = jisx0213_encoder(data, length, NULL); in jisx0213_2004_2_encoder() local
915 if (coded == MAP_UNMAPPABLE || coded == MAP_MULTIPLE_AVAIL) in jisx0213_2004_2_encoder()
916 return coded; in jisx0213_2004_2_encoder()
917 else if (coded & 0x8000) in jisx0213_2004_2_encoder()
918 return coded & 0x7fff; in jisx0213_2004_2_encoder()
936 DBCHAR coded; in jisx0201_r_encoder() local
937 JISX0201_R_ENCODE(*data, coded) in jisx0201_r_encoder()
940 return coded; in jisx0201_r_encoder()
956 DBCHAR coded; in jisx0201_k_encoder() local
957 JISX0201_K_ENCODE(*data, coded) in jisx0201_k_encoder()
960 return coded - 0x80; in jisx0201_k_encoder()
989 DBCHAR coded; in gb2312_encoder() local
992 if (TRYMAP_ENC(gbcommon, coded, *data)) { in gb2312_encoder()
993 if (!(coded & 0x8000)) in gb2312_encoder()
994 return coded; in gb2312_encoder()