Lines Matching refs:c
61 u16 c = src[i]; in ucs2_utf8size() local
63 if (c >= 0x800) in ucs2_utf8size()
65 else if (c >= 0x80) in ucs2_utf8size()
90 u16 c = src[i]; in ucs2_as_utf8() local
92 if (c >= 0x800) { in ucs2_as_utf8()
96 dest[j++] = 0xe0 | (c & 0xf000) >> 12; in ucs2_as_utf8()
97 dest[j++] = 0x80 | (c & 0x0fc0) >> 6; in ucs2_as_utf8()
98 dest[j++] = 0x80 | (c & 0x003f); in ucs2_as_utf8()
99 } else if (c >= 0x80) { in ucs2_as_utf8()
103 dest[j++] = 0xc0 | (c & 0x7c0) >> 6; in ucs2_as_utf8()
104 dest[j++] = 0x80 | (c & 0x03f); in ucs2_as_utf8()
107 dest[j++] = c & 0x7f; in ucs2_as_utf8()