Lines Matching refs:code
52 utf16le_code_to_mbclen(OnigCodePoint code) in utf16le_code_to_mbclen() argument
54 return (code > 0xffff ? 4 : 2); in utf16le_code_to_mbclen()
86 OnigCodePoint code; in utf16le_mbc_to_code() local
92 code = ((((c1 - 0xd8) << 2) + ((c0 & 0xc0) >> 6) + 1) << 16) in utf16le_mbc_to_code()
97 code = c1 * 256 + p[0]; in utf16le_mbc_to_code()
99 return code; in utf16le_mbc_to_code()
103 utf16le_code_to_mbc(OnigCodePoint code, UChar *buf) in utf16le_code_to_mbc() argument
107 if (code > 0xffff) { in utf16le_code_to_mbc()
110 plane = (code >> 16) - 1; in utf16le_code_to_mbc()
111 high = (code & 0xff00) >> 8; in utf16le_code_to_mbc()
115 *p++ = (UChar )(code & 0xff); in utf16le_code_to_mbc()
120 *p++ = (UChar )(code & 0xff); in utf16le_code_to_mbc()
121 *p++ = (UChar )((code & 0xff00) >> 8); in utf16le_code_to_mbc()