Lines Matching refs:code
114 code_to_mbclen(OnigCodePoint code) in code_to_mbclen() argument
116 if (ONIGENC_IS_CODE_ASCII(code)) return 1; in code_to_mbclen()
117 else if ((code & 0xff0000) != 0) return 3; in code_to_mbclen()
118 else if ((code & 0xff00) != 0) return 2; in code_to_mbclen()
125 code_to_mbc_first(OnigCodePoint code)
129 if ((code & 0xff0000) != 0) {
130 first = (code >> 16) & 0xff;
132 else if ((code & 0xff00) != 0) {
133 first = (code >> 8) & 0xff;
136 return (int )code;
143 code_to_mbc(OnigCodePoint code, UChar *buf) in code_to_mbc() argument
147 if ((code & 0xff0000) != 0) *p++ = (UChar )(((code >> 16) & 0xff)); in code_to_mbc()
148 if ((code & 0xff00) != 0) *p++ = (UChar )(((code >> 8) & 0xff)); in code_to_mbc()
149 *p++ = (UChar )(code & 0xff); in code_to_mbc()
248 is_code_ctype(OnigCodePoint code, unsigned int ctype) in is_code_ctype() argument
251 if (code < 128) in is_code_ctype()
252 return ONIGENC_IS_ASCII_CODE_CTYPE(code, ctype); in is_code_ctype()
255 return (code_to_mbclen(code) > 1 ? TRUE : FALSE); in is_code_ctype()
264 return onig_is_in_code_range((UChar* )PropertyList[ctype], code); in is_code_ctype()