Home | History | Annotate | Download | only in cgpt

Lines Matching defs:code_point

443   uint32_t code_point = 0;
461 code_point = (codeunit & 0x03FF) + 0x0040;
464 code_point = codeunit;
469 code_point = (code_point << 10) | (codeunit & 0x03FF);
481 require(code_point <= 0x10FFFF);
482 if (code_point <= 0x7F && maxoutput >= 1) {
484 utf8[s8idx++] = code_point & 0x7F;
485 } else if (code_point <= 0x7FF && maxoutput >= 2) {
487 utf8[s8idx++] = 0xC0 | (code_point >> 6);
488 utf8[s8idx++] = 0x80 | (code_point & 0x3F);
489 } else if (code_point <= 0xFFFF && maxoutput >= 3) {
491 utf8[s8idx++] = 0xE0 | (code_point >> 12);
492 utf8[s8idx++] = 0x80 | ((code_point >> 6) & 0x3F);
493 utf8[s8idx++] = 0x80 | (code_point & 0x3F);
494 } else if (code_point <= 0x10FFFF && maxoutput >= 4) {
496 utf8[s8idx++] = 0xF0 | (code_point >> 18);
497 utf8[s8idx++] = 0x80 | ((code_point >> 12) & 0x3F);
498 utf8[s8idx++] = 0x80 | ((code_point >> 6) & 0x3F);
499 utf8[s8idx++] = 0x80 | (code_point & 0x3F);
531 uint32_t code_point = 0;
550 code_point = (code_point << 6) | (code_unit & 0x3F);
561 code_point = code_unit;
568 code_point = code_unit & 0x1F;
571 code_point = code_unit & 0x0F;
574 code_point = code_unit & 0x07;
589 if (code_point <= 0x7F) retval = CGPT_FAILED;
592 if (code_point <= 0x7FF) retval = CGPT_FAILED;
595 if (code_point <= 0xFFFF) retval = CGPT_FAILED;
600 if ((code_point <= 0xD7FF) ||
601 (code_point >= 0xE000 && code_point <= 0xFFFF)) {
602 utf16[s16idx++] = code_point;
604 } else if (code_point >= 0x10000 && code_point <= 0x10FFFF &&
606 utf16[s16idx++] = 0xD800 | ((code_point >> 10) - 0x0040);
607 utf16[s16idx++] = 0xDC00 | (code_point & 0x03FF);