Lines Matching refs:uc
26 u8_uctomb (uint8_t *s, ucs4_t uc, int n)
28 if (uc < 0x80)
32 s[0] = uc;
41 if (uc < 0x800)
43 else if (uc < 0x10000)
45 if (uc < 0xd800 || uc >= 0xe000)
51 else if (uc < 0x200000)
53 else if (uc < 0x4000000)
55 else if (uc <= 0x7fffffff)
58 else if (uc < 0x110000)
69 case 6: s[5] = 0x80 | (uc & 0x3f); uc = uc >> 6; uc |= 0x4000000;
70 case 5: s[4] = 0x80 | (uc & 0x3f); uc = uc >> 6; uc |= 0x200000;
72 case 4: s[3] = 0x80 | (uc & 0x3f); uc = uc >> 6; uc |= 0x10000;
73 case 3: s[2] = 0x80 | (uc & 0x3f); uc = uc >> 6; uc |= 0x800;
74 case 2: s[1] = 0x80 | (uc & 0x3f); uc = uc >> 6; uc |= 0xc0;
75 /*case 1:*/ s[0] = uc;