Lines Matching defs:codepoint
150 size_t _glfwEncodeUTF8(char* s, uint32_t codepoint)
154 if (codepoint < 0x80)
155 s[count++] = (char) codepoint;
156 else if (codepoint < 0x800)
158 s[count++] = (codepoint >> 6) | 0xc0;
159 s[count++] = (codepoint & 0x3f) | 0x80;
161 else if (codepoint < 0x10000)
163 s[count++] = (codepoint >> 12) | 0xe0;
164 s[count++] = ((codepoint >> 6) & 0x3f) | 0x80;
165 s[count++] = (codepoint & 0x3f) | 0x80;
167 else if (codepoint < 0x110000)
169 s[count++] = (codepoint >> 18) | 0xf0;
170 s[count++] = ((codepoint >> 12) & 0x3f) | 0x80;
171 s[count++] = ((codepoint >> 6) & 0x3f) | 0x80;
172 s[count++] = (codepoint & 0x3f) | 0x80;