Lines Matching defs:codepoint
10860 uint32_t codepoint = p->digit;
10862 /* emit the codepoint as UTF-8. */
10865 if (codepoint <= 0x7F) {
10866 utf8[0] = codepoint;
10868 } else if (codepoint <= 0x07FF) {
10869 utf8[1] = (codepoint & 0x3F) | 0x80;
10870 codepoint >>= 6;
10871 utf8[0] = (codepoint & 0x1F) | 0xC0;
10873 } else /* codepoint <= 0xFFFF */ {
10874 utf8[2] = (codepoint & 0x3F) | 0x80;
10875 codepoint >>= 6;
10876 utf8[1] = (codepoint & 0x3F) | 0x80;
10877 codepoint >>= 6;
10878 utf8[0] = (codepoint & 0x0F) | 0xE0;
10881 /* TODO(haberman): Handle high surrogates: if codepoint is a high surrogate