Lines Matching refs:code

654 onigenc_single_byte_code_to_mbclen(OnigCodePoint code)  in onigenc_single_byte_code_to_mbclen()  argument
660 onigenc_single_byte_code_to_mbc_first(OnigCodePoint code) in onigenc_single_byte_code_to_mbc_first() argument
662 return (code & 0xff); in onigenc_single_byte_code_to_mbc_first()
666 onigenc_single_byte_code_to_mbc(OnigCodePoint code, UChar *buf) in onigenc_single_byte_code_to_mbc() argument
668 *buf = (UChar )(code & 0xff); in onigenc_single_byte_code_to_mbc()
759 onigenc_mb2_code_to_mbclen(OnigCodePoint code) in onigenc_mb2_code_to_mbclen() argument
761 if ((code & 0xff00) != 0) return 2; in onigenc_mb2_code_to_mbclen()
766 onigenc_mb4_code_to_mbclen(OnigCodePoint code) in onigenc_mb4_code_to_mbclen() argument
768 if ((code & 0xff000000) != 0) return 4; in onigenc_mb4_code_to_mbclen()
769 else if ((code & 0xff0000) != 0) return 3; in onigenc_mb4_code_to_mbclen()
770 else if ((code & 0xff00) != 0) return 2; in onigenc_mb4_code_to_mbclen()
775 onigenc_mb2_code_to_mbc_first(OnigCodePoint code) in onigenc_mb2_code_to_mbc_first() argument
779 if ((code & 0xff00) != 0) { in onigenc_mb2_code_to_mbc_first()
780 first = (code >> 8) & 0xff; in onigenc_mb2_code_to_mbc_first()
783 return (int )code; in onigenc_mb2_code_to_mbc_first()
789 onigenc_mb4_code_to_mbc_first(OnigCodePoint code) in onigenc_mb4_code_to_mbc_first() argument
793 if ((code & 0xff000000) != 0) { in onigenc_mb4_code_to_mbc_first()
794 first = (code >> 24) & 0xff; in onigenc_mb4_code_to_mbc_first()
796 else if ((code & 0xff0000) != 0) { in onigenc_mb4_code_to_mbc_first()
797 first = (code >> 16) & 0xff; in onigenc_mb4_code_to_mbc_first()
799 else if ((code & 0xff00) != 0) { in onigenc_mb4_code_to_mbc_first()
800 first = (code >> 8) & 0xff; in onigenc_mb4_code_to_mbc_first()
803 return (int )code; in onigenc_mb4_code_to_mbc_first()
809 onigenc_mb2_code_to_mbc(OnigEncoding enc, OnigCodePoint code, UChar *buf) in onigenc_mb2_code_to_mbc() argument
813 if ((code & 0xff00) != 0) { in onigenc_mb2_code_to_mbc()
814 *p++ = (UChar )((code >> 8) & 0xff); in onigenc_mb2_code_to_mbc()
816 *p++ = (UChar )(code & 0xff); in onigenc_mb2_code_to_mbc()
826 onigenc_mb4_code_to_mbc(OnigEncoding enc, OnigCodePoint code, UChar *buf) in onigenc_mb4_code_to_mbc() argument
830 if ((code & 0xff000000) != 0) { in onigenc_mb4_code_to_mbc()
831 *p++ = (UChar )((code >> 24) & 0xff); in onigenc_mb4_code_to_mbc()
833 if ((code & 0xff0000) != 0 || p != buf) { in onigenc_mb4_code_to_mbc()
834 *p++ = (UChar )((code >> 16) & 0xff); in onigenc_mb4_code_to_mbc()
836 if ((code & 0xff00) != 0 || p != buf) { in onigenc_mb4_code_to_mbc()
837 *p++ = (UChar )((code >> 8) & 0xff); in onigenc_mb4_code_to_mbc()
839 *p++ = (UChar )(code & 0xff); in onigenc_mb4_code_to_mbc()
849 onigenc_mb2_is_code_ctype(OnigEncoding enc, OnigCodePoint code, in onigenc_mb2_is_code_ctype() argument
852 if (code < 128) in onigenc_mb2_is_code_ctype()
853 return ONIGENC_IS_ASCII_CODE_CTYPE(code, ctype); in onigenc_mb2_is_code_ctype()
857 return (ONIGENC_CODE_TO_MBCLEN(enc, code) > 1 ? TRUE : FALSE); in onigenc_mb2_is_code_ctype()
865 onigenc_mb4_is_code_ctype(OnigEncoding enc, OnigCodePoint code, in onigenc_mb4_is_code_ctype() argument
868 if (code < 128) in onigenc_mb4_is_code_ctype()
869 return ONIGENC_IS_ASCII_CODE_CTYPE(code, ctype); in onigenc_mb4_is_code_ctype()
873 return (ONIGENC_CODE_TO_MBCLEN(enc, code) > 1 ? TRUE : FALSE); in onigenc_mb4_is_code_ctype()
902 onigenc_is_code_ctype(OnigEncoding enc, OnigCodePoint code, int ctype) in onigenc_is_code_ctype() argument
906 if (code == 0x0a) return 1; in onigenc_is_code_ctype()
910 return m17n_isalpha(enc, code); in onigenc_is_code_ctype()
913 return ONIGENC_IS_CODE_BLANK(enc, (int )(code)); in onigenc_is_code_ctype()
916 return m17n_iscntrl(enc, code); in onigenc_is_code_ctype()
919 return m17n_isdigit(enc, code); in onigenc_is_code_ctype()
922 return ONIGENC_IS_CODE_GRAPH(enc, (int )(code)); in onigenc_is_code_ctype()
925 return m17n_islower(enc, code); in onigenc_is_code_ctype()
928 return m17n_isprint(enc, code); in onigenc_is_code_ctype()
931 return m17n_ispunct(enc, code); in onigenc_is_code_ctype()
934 return m17n_isspace(enc, code); in onigenc_is_code_ctype()
937 return m17n_isupper(enc, code); in onigenc_is_code_ctype()
940 return m17n_isxdigit(enc, code); in onigenc_is_code_ctype()
943 return m17n_iswchar(enc, code); in onigenc_is_code_ctype()
946 return (code < 128 ? TRUE : FALSE); in onigenc_is_code_ctype()
949 return m17n_isalnum(enc, code); in onigenc_is_code_ctype()
959 onigenc_code_to_mbc(OnigEncoding enc, OnigCodePoint code, UChar *buf) in onigenc_code_to_mbc() argument
963 m17n_mbcput(enc, code, buf); in onigenc_code_to_mbc()
964 c = m17n_firstbyte(enc, code); in onigenc_code_to_mbc()