Lines Matching refs:codepoint
334 WIN_ConvertUTF32toUTF8(UINT32 codepoint, char * text) in WIN_ConvertUTF32toUTF8() argument
336 if (codepoint <= 0x7F) { in WIN_ConvertUTF32toUTF8()
337 text[0] = (char) codepoint; in WIN_ConvertUTF32toUTF8()
339 } else if (codepoint <= 0x7FF) { in WIN_ConvertUTF32toUTF8()
340 text[0] = 0xC0 | (char) ((codepoint >> 6) & 0x1F); in WIN_ConvertUTF32toUTF8()
341 text[1] = 0x80 | (char) (codepoint & 0x3F); in WIN_ConvertUTF32toUTF8()
343 } else if (codepoint <= 0xFFFF) { in WIN_ConvertUTF32toUTF8()
344 text[0] = 0xE0 | (char) ((codepoint >> 12) & 0x0F); in WIN_ConvertUTF32toUTF8()
345 text[1] = 0x80 | (char) ((codepoint >> 6) & 0x3F); in WIN_ConvertUTF32toUTF8()
346 text[2] = 0x80 | (char) (codepoint & 0x3F); in WIN_ConvertUTF32toUTF8()
348 } else if (codepoint <= 0x10FFFF) { in WIN_ConvertUTF32toUTF8()
349 text[0] = 0xF0 | (char) ((codepoint >> 18) & 0x0F); in WIN_ConvertUTF32toUTF8()
350 text[1] = 0x80 | (char) ((codepoint >> 12) & 0x3F); in WIN_ConvertUTF32toUTF8()
351 text[2] = 0x80 | (char) ((codepoint >> 6) & 0x3F); in WIN_ConvertUTF32toUTF8()
352 text[3] = 0x80 | (char) (codepoint & 0x3F); in WIN_ConvertUTF32toUTF8()