Lines Matching refs:code
80 OnigCodePoint code; in utf16be_mbc_to_code() local
83 code = ((((p[0] - 0xd8) << 2) + ((p[1] & 0xc0) >> 6) + 1) << 16) in utf16be_mbc_to_code()
88 code = p[0] * 256 + p[1]; in utf16be_mbc_to_code()
90 return code; in utf16be_mbc_to_code()
94 utf16be_code_to_mbclen(OnigCodePoint code) in utf16be_code_to_mbclen() argument
96 return (code > 0xffff ? 4 : 2); in utf16be_code_to_mbclen()
100 utf16be_code_to_mbc(OnigCodePoint code, UChar *buf) in utf16be_code_to_mbc() argument
104 if (code > 0xffff) { in utf16be_code_to_mbc()
107 plane = (code >> 16) - 1; in utf16be_code_to_mbc()
109 high = (code & 0xff00) >> 8; in utf16be_code_to_mbc()
112 *p = (UChar )(code & 0xff); in utf16be_code_to_mbc()
116 *p++ = (UChar )((code & 0xff00) >> 8); in utf16be_code_to_mbc()
117 *p++ = (UChar )(code & 0xff); in utf16be_code_to_mbc()