Home | History | Annotate | Download | only in cgpt

Lines Matching full:code_unit

544     uint8_t code_unit;
545 code_unit = utf8[s8idx];
549 if ((code_unit & 0xC0) == 0x80) {
550 code_point = (code_point << 6) | (code_unit & 0x3F);
560 if (code_unit <= 0x7F) {
561 code_point = code_unit;
563 } else if (code_unit <= 0xBF) {
567 } else if (code_unit >= 0xC2 && code_unit <= 0xDF) {
568 code_point = code_unit & 0x1F;
570 } else if (code_unit >= 0xE0 && code_unit <= 0xEF) {
571 code_point = code_unit & 0x0F;
573 } else if (code_unit >= 0xF0 && code_unit <= 0xF4) {
574 code_point = code_unit & 0x07;