Lines Matching refs:code
80 code_to_mbclen(OnigCodePoint code) in code_to_mbclen() argument
82 if (code < 256) { in code_to_mbclen()
83 if (EncLen_SJIS[(int )code] == 1) in code_to_mbclen()
88 else if (code <= 0xffff) { in code_to_mbclen()
115 code_to_mbc(OnigCodePoint code, UChar *buf) in code_to_mbc() argument
119 if ((code & 0xff00) != 0) *p++ = (UChar )(((code >> 8) & 0xff)); in code_to_mbc()
120 *p++ = (UChar )(code & 0xff); in code_to_mbc()
164 is_code_ctype(OnigCodePoint code, unsigned int ctype)
166 if (code < 128)
167 return ONIGENC_IS_ASCII_CODE_CTYPE(code, ctype);
170 return (code_to_mbclen(code) > 1 ? TRUE : FALSE);
256 is_code_ctype(OnigCodePoint code, unsigned int ctype) in is_code_ctype() argument
259 if (code < 128) in is_code_ctype()
260 return ONIGENC_IS_ASCII_CODE_CTYPE(code, ctype); in is_code_ctype()
263 return (code_to_mbclen(code) > 1 ? TRUE : FALSE); in is_code_ctype()
274 return onig_is_in_code_range((UChar* )PropertyList[ctype], code); in is_code_ctype()