Lines Matching refs:codepoint
274 Emscripten_ConvertUTF32toUTF8(Uint32 codepoint, char * text) in Emscripten_ConvertUTF32toUTF8() argument
276 if (codepoint <= 0x7F) { in Emscripten_ConvertUTF32toUTF8()
277 text[0] = (char) codepoint; in Emscripten_ConvertUTF32toUTF8()
279 } else if (codepoint <= 0x7FF) { in Emscripten_ConvertUTF32toUTF8()
280 text[0] = 0xC0 | (char) ((codepoint >> 6) & 0x1F); in Emscripten_ConvertUTF32toUTF8()
281 text[1] = 0x80 | (char) (codepoint & 0x3F); in Emscripten_ConvertUTF32toUTF8()
283 } else if (codepoint <= 0xFFFF) { in Emscripten_ConvertUTF32toUTF8()
284 text[0] = 0xE0 | (char) ((codepoint >> 12) & 0x0F); in Emscripten_ConvertUTF32toUTF8()
285 text[1] = 0x80 | (char) ((codepoint >> 6) & 0x3F); in Emscripten_ConvertUTF32toUTF8()
286 text[2] = 0x80 | (char) (codepoint & 0x3F); in Emscripten_ConvertUTF32toUTF8()
288 } else if (codepoint <= 0x10FFFF) { in Emscripten_ConvertUTF32toUTF8()
289 text[0] = 0xF0 | (char) ((codepoint >> 18) & 0x0F); in Emscripten_ConvertUTF32toUTF8()
290 text[1] = 0x80 | (char) ((codepoint >> 12) & 0x3F); in Emscripten_ConvertUTF32toUTF8()
291 text[2] = 0x80 | (char) ((codepoint >> 6) & 0x3F); in Emscripten_ConvertUTF32toUTF8()
292 text[3] = 0x80 | (char) (codepoint & 0x3F); in Emscripten_ConvertUTF32toUTF8()