Lines Matching refs:code
78 code_to_mbclen(OnigCodePoint code) in code_to_mbclen() argument
80 if (ONIGENC_IS_CODE_ASCII(code)) return 1; in code_to_mbclen()
81 else if ((code & 0xff0000) != 0) return 3; in code_to_mbclen()
82 else if ((code & 0xff00) != 0) return 2; in code_to_mbclen()
89 code_to_mbc_first(OnigCodePoint code)
93 if ((code & 0xff0000) != 0) {
94 first = (code >> 16) & 0xff;
96 else if ((code & 0xff00) != 0) {
97 first = (code >> 8) & 0xff;
100 return (int )code;
107 code_to_mbc(OnigCodePoint code, UChar *buf) in code_to_mbc() argument
111 if ((code & 0xff0000) != 0) *p++ = (UChar )(((code >> 16) & 0xff)); in code_to_mbc()
112 if ((code & 0xff00) != 0) *p++ = (UChar )(((code >> 8) & 0xff)); in code_to_mbc()
113 *p++ = (UChar )(code & 0xff); in code_to_mbc()
222 is_code_ctype(OnigCodePoint code, unsigned int ctype) in is_code_ctype() argument
225 if (code < 128) in is_code_ctype()
226 return ONIGENC_IS_ASCII_CODE_CTYPE(code, ctype); in is_code_ctype()
229 return (code_to_mbclen(code) > 1 ? TRUE : FALSE); in is_code_ctype()
240 return onig_is_in_code_range((UChar* )PropertyList[ctype], code); in is_code_ctype()