Lines Matching refs:norm16
366 void handleRange(UChar32 start, UChar32 end, uint16_t norm16) {
367 if(impl.isAlgorithmicNoNo(norm16)) {
368 // Range of code points with same-norm16-value algorithmic decompositions.
410 // Range of code points with same-norm16-value algorithmic decompositions.
542 uint16_t norm16=0;
552 isMostDecompYesAndZeroCC(norm16=UTRIE2_GET16_FROM_U16_SINGLE_LEAD(normTrie, c))
569 if(isMostDecompYesAndZeroCC(norm16=getNorm16(c))) {
594 if(!decompose(c, norm16, *buffer, errorCode)) {
598 if(isDecompYes(norm16)) {
599 uint8_t cc=getCCFromYesOrMaybe(norm16);
623 uint16_t norm16;
624 UTRIE2_U16_NEXT16(normTrie, src, limit, c, norm16);
625 if(!decompose(c, norm16, buffer, errorCode)) {
632 UBool Normalizer2Impl::decompose(UChar32 c, uint16_t norm16,
638 if(isDecompYes(norm16)) {
640 return buffer.append(c, getCCFromYesOrMaybe(norm16), errorCode);
641 } else if(isHangul(norm16)) {
645 } else if(isDecompNoAlgorithmic(norm16)) {
646 c=mapAlgorithmic(c, norm16);
647 norm16=getNorm16(c);
650 const uint16_t *mapping=getMapping(norm16);
668 uint16_t norm16;
670 if(c<minDecompNoCP || isDecompYes(norm16=getNorm16(c))) {
673 } else if(isHangul(norm16)) {
677 } else if(isDecompNoAlgorithmic(norm16)) {
678 c=mapAlgorithmic(c, norm16);
684 const uint16_t *mapping=getMapping(norm16);
699 uint16_t norm16;
700 if(c<minDecompNoCP || isDecompYes(norm16=getNorm16(c))) {
703 } else if(isHangul(norm16)) {
708 } else if(isDecompNoAlgorithmic(norm16)) {
709 c=mapAlgorithmic(c, norm16);
715 const uint16_t *mapping=getMapping(norm16);
775 uint16_t norm16=getNorm16(c);
776 if(isHangul(norm16) || isDecompYesAndZeroCC(norm16)) {
778 } else if(norm16>MIN_NORMAL_MAYBE_YES) {
780 } else if(isDecompNoAlgorithmic(norm16)) {
781 c=mapAlgorithmic(c, norm16);
784 const uint16_t *mapping=getMapping(norm16);
920 uint16_t norm16;
932 UTRIE2_U16_NEXT16(normTrie, p, limit, c, norm16);
933 cc=getCCFromYesOrMaybe(norm16);
935 isMaybe(norm16) &&
941 if(isJamoVT(norm16)) {
1056 if((compositionsList=getCompositionsListForDecompYes(norm16))!=NULL) {
1076 uint16_t norm16=getNorm16(a); // maps an out-of-range 'a' to inert norm16=0
1078 if(isInert(norm16)) {
1080 } else if(norm16<minYesNoMappingsOnly) {
1081 if(isJamoL(norm16)) {
1091 } else if(isHangul(norm16)) {
1100 list=extraData+norm16;
1101 if(norm16>minYesNo) { // composite 'a' has both mapping & compositions list
1107 } else if(norm16<minMaybeYes || MIN_NORMAL_MAYBE_YES<=norm16) {
1110 list=maybeYesCompositions+norm16-minMaybeYes;
1162 uint16_t norm16=0;
1171 isCompYesAndZeroCC(norm16=UTRIE2_GET16_FROM_U16_SINGLE_LEAD(normTrie, c))
1188 if(isCompYesAndZeroCC(norm16=getNorm16(c))) {
1222 * isCompYesAndZeroCC(norm16) is false, that is, norm16>=minNoNo.
1228 if(isJamoVT(norm16) && prevBoundary!=prevSrc) {
1305 if(norm16>=MIN_YES_YES_WITH_CC) {
1306 uint8_t cc=(uint8_t)norm16; // cc!=0
1334 } else if(!doCompose && !isMaybeOrNonZeroCC(norm16)) {
1353 if(hasCompBoundaryBefore(c, norm16)) {
1408 uint16_t norm16=0;
1418 isCompYesAndZeroCC(norm16=UTRIE2_GET16_FROM_U16_SINGLE_LEAD(normTrie, c))
1435 if(isCompYesAndZeroCC(norm16=getNorm16(c))) {
1457 * isCompYesAndZeroCC(norm16) is false, that is, norm16>=minNoNo.
1461 if(isMaybeOrNonZeroCC(norm16)) {
1462 uint8_t cc=getCCFromYesOrMaybe(norm16);
1479 if(norm16<MIN_YES_YES_WITH_CC) {
1538 UBool Normalizer2Impl::hasCompBoundaryBefore(UChar32 c, uint16_t norm16) const {
1540 if(isCompYesAndZeroCC(norm16)) {
1542 } else if(isMaybeOrNonZeroCC(norm16)) {
1544 } else if(isDecompNoAlgorithmic(norm16)) {
1545 c=mapAlgorithmic(c, norm16);
1546 norm16=getNorm16(c);
1549 const uint16_t *mapping=getMapping(norm16);
1567 uint16_t norm16=getNorm16(c);
1568 if(isInert(norm16)) {
1570 } else if(norm16<=minYesNo) {
1571 // Hangul: norm16==minYesNo
1574 return isHangul(norm16) && !Hangul::isHangulWithoutJamoT((UChar)c);
1575 } else if(norm16>= (testInert ? minNoNo : minMaybeYes)) {
1577 } else if(isDecompNoAlgorithmic(norm16)) {
1578 c=mapAlgorithmic(c, norm16);
1583 const uint16_t *mapping=getMapping(norm16);
1600 uint16_t norm16;
1602 norm16=iter.previous16();
1603 } while(!hasCompBoundaryBefore(iter.codePoint, norm16));
1611 uint16_t norm16;
1613 norm16=iter.next16();
1614 } while(!hasCompBoundaryBefore(iter.codePoint, norm16));
1630 uint16_t norm16=getNorm16(c);
1631 if(norm16<=minYesNo) {
1634 } else if(norm16>=MIN_NORMAL_MAYBE_YES) {
1636 norm16&=0xff;
1637 return norm16|(norm16<<8);
1638 } else if(norm16>=minMaybeYes) {
1640 } else if(isDecompNoAlgorithmic(norm16)) {
1641 c=mapAlgorithmic(c, norm16);
1644 const uint16_t *mapping=getMapping(norm16);
1652 norm16=firstUnit>>8; // tccc
1654 norm16|=*(mapping-1)&0xff00; // lccc
1656 return norm16;
1897 // Call Normalizer2Impl::makeCanonIterDataFromNorm16() for a range of same-norm16 characters.
1933 void Normalizer2Impl::makeCanonIterDataFromNorm16(UChar32 start, UChar32 end, uint16_t norm16,
1936 if(norm16==0 || (minYesNo<=norm16 && norm16<minNoNo)) {
1948 if(norm16>=minMaybeYes) {
1951 if(norm16<MIN_NORMAL_MAYBE_YES) {
1954 } else if(norm16<minYesNo) {
1959 uint16_t norm16_2=norm16;
2038 uint16_t norm16=getNorm16(c);
2039 if(norm16==JAMO_L) {
2044 addComposites(getCompositionsList(norm16), set);