Lines Matching refs:code
78 eucjp_code_to_mbclen(OnigCodePoint code) in eucjp_code_to_mbclen() argument
80 if (ONIGENC_IS_CODE_ASCII(code)) return 1; in eucjp_code_to_mbclen()
81 else if ((code & 0xff0000) != 0) return 3; in eucjp_code_to_mbclen()
82 else if ((code & 0xff00) != 0) return 2; in eucjp_code_to_mbclen()
88 eucjp_code_to_mbc_first(OnigCodePoint code)
92 if ((code & 0xff0000) != 0) {
93 first = (code >> 16) & 0xff;
95 else if ((code & 0xff00) != 0) {
96 first = (code >> 8) & 0xff;
99 return (int )code;
106 eucjp_code_to_mbc(OnigCodePoint code, UChar *buf) in eucjp_code_to_mbc() argument
110 if ((code & 0xff0000) != 0) *p++ = (UChar )(((code >> 16) & 0xff)); in eucjp_code_to_mbc()
111 if ((code & 0xff00) != 0) *p++ = (UChar )(((code >> 8) & 0xff)); in eucjp_code_to_mbc()
112 *p++ = (UChar )(code & 0xff); in eucjp_code_to_mbc()
159 eucjp_is_code_ctype(OnigCodePoint code, unsigned int ctype) in eucjp_is_code_ctype() argument
161 if (code < 128) in eucjp_is_code_ctype()
162 return ONIGENC_IS_ASCII_CODE_CTYPE(code, ctype); in eucjp_is_code_ctype()
166 return (eucjp_code_to_mbclen(code) > 1 ? TRUE : FALSE); in eucjp_is_code_ctype()