Lines Matching refs:norm16

468     uint32_t norm16;  in addLcccChars()  local
470 nullptr, nullptr, &norm16)) >= 0) { in addLcccChars()
471 if (norm16 > Normalizer2Impl::MIN_NORMAL_MAYBE_YES && in addLcccChars()
472 norm16 != Normalizer2Impl::JAMO_VT) { in addLcccChars()
474 } else if (minNoNoCompNoMaybeCC <= norm16 && norm16 < limitNoNo) { in addLcccChars()
601 uint16_t norm16=0; in decompose() local
611 isMostDecompYesAndZeroCC(norm16=UCPTRIE_FAST_BMP_GET(normTrie, UCPTRIE_16, c)) in decompose()
620 norm16=UCPTRIE_FAST_SUPP_GET(normTrie, UCPTRIE_16, c); in decompose()
621 if(isMostDecompYesAndZeroCC(norm16)) { in decompose()
649 if(!decompose(c, norm16, *buffer, errorCode)) { in decompose()
653 if(isDecompYes(norm16)) { in decompose()
654 uint8_t cc=getCCFromYesOrMaybe(norm16); in decompose()
686 uint16_t norm16; in decomposeShort() local
687 UCPTRIE_FAST_U16_NEXT(normTrie, UCPTRIE_16, src, limit, c, norm16); in decomposeShort()
688 if (stopAtCompBoundary && norm16HasCompBoundaryBefore(norm16)) { in decomposeShort()
691 if(!decompose(c, norm16, buffer, errorCode)) { in decomposeShort()
694 if (stopAtCompBoundary && norm16HasCompBoundaryAfter(norm16, onlyContiguous)) { in decomposeShort()
701 UBool Normalizer2Impl::decompose(UChar32 c, uint16_t norm16, in decompose() argument
705 if (norm16 >= limitNoNo) { in decompose()
706 if (isMaybeOrNonZeroCC(norm16)) { in decompose()
707 return buffer.append(c, getCCFromYesOrMaybe(norm16), errorCode); in decompose()
710 c=mapAlgorithmic(c, norm16); in decompose()
711 norm16=getRawNorm16(c); in decompose()
713 if (norm16 < minYesNo) { in decompose()
716 } else if(isHangulLV(norm16) || isHangulLVT(norm16)) { in decompose()
722 const uint16_t *mapping=getMapping(norm16); in decompose()
744 uint16_t norm16; in decomposeShort() local
745 UCPTRIE_FAST_U8_NEXT(normTrie, UCPTRIE_16, src, limit, norm16); in decomposeShort()
748 if (norm16 >= limitNoNo) { in decomposeShort()
749 if (isMaybeOrNonZeroCC(norm16)) { in decomposeShort()
752 if (!buffer.append(c, getCCFromYesOrMaybe(norm16), errorCode)) { in decomposeShort()
762 c = mapAlgorithmic(c, norm16); in decomposeShort()
763 norm16 = getRawNorm16(c); in decomposeShort()
764 } else if (stopAtCompBoundary && norm16 < minNoNoCompNoMaybeCC) { in decomposeShort()
772 U_ASSERT(norm16 != INERT); in decomposeShort()
773 if (norm16 < minYesNo) { in decomposeShort()
781 } else if (isHangulLV(norm16) || isHangulLVT(norm16)) { in decomposeShort()
792 const uint16_t *mapping = getMapping(norm16); in decomposeShort()
806 if (stopAtCompBoundary && norm16HasCompBoundaryAfter(norm16, onlyContiguous)) { in decomposeShort()
815 uint16_t norm16; in getDecomposition() local
816 if(c<minDecompNoCP || isMaybeOrNonZeroCC(norm16=getNorm16(c))) { in getDecomposition()
821 if(isDecompNoAlgorithmic(norm16)) { in getDecomposition()
823 c=mapAlgorithmic(c, norm16); in getDecomposition()
828 norm16 = getRawNorm16(c); in getDecomposition()
830 if (norm16 < minYesNo) { in getDecomposition()
832 } else if(isHangulLV(norm16) || isHangulLVT(norm16)) { in getDecomposition()
838 const uint16_t *mapping=getMapping(norm16); in getDecomposition()
849 uint16_t norm16; in getRawDecomposition() local
850 if(c<minDecompNoCP || isDecompYes(norm16=getNorm16(c))) { in getRawDecomposition()
853 } else if(isHangulLV(norm16) || isHangulLVT(norm16)) { in getRawDecomposition()
858 } else if(isDecompNoAlgorithmic(norm16)) { in getRawDecomposition()
859 c=mapAlgorithmic(c, norm16); in getRawDecomposition()
865 const uint16_t *mapping=getMapping(norm16); in getRawDecomposition()
906 uint16_t norm16; in decomposeAndAppend() local
907 UCPTRIE_FAST_U16_NEXT(normTrie, UCPTRIE_16, p, limit, c, norm16); in decomposeAndAppend()
908 if ((cc = getCC(norm16)) == 0) { in decomposeAndAppend()
932 UBool Normalizer2Impl::norm16HasDecompBoundaryBefore(uint16_t norm16) const { in norm16HasDecompBoundaryBefore()
933 if (norm16 < minNoNoCompNoMaybeCC) { in norm16HasDecompBoundaryBefore()
936 if (norm16 >= limitNoNo) { in norm16HasDecompBoundaryBefore()
937 return norm16 <= MIN_NORMAL_MAYBE_YES || norm16 == JAMO_VT; in norm16HasDecompBoundaryBefore()
940 const uint16_t *mapping=getMapping(norm16); in norm16HasDecompBoundaryBefore()
956 UBool Normalizer2Impl::norm16HasDecompBoundaryAfter(uint16_t norm16) const { in norm16HasDecompBoundaryAfter()
957 if(norm16 <= minYesNo || isHangulLVT(norm16)) { in norm16HasDecompBoundaryAfter()
960 if (norm16 >= limitNoNo) { in norm16HasDecompBoundaryAfter()
961 if (isMaybeOrNonZeroCC(norm16)) { in norm16HasDecompBoundaryAfter()
962 return norm16 <= MIN_NORMAL_MAYBE_YES || norm16 == JAMO_VT; in norm16HasDecompBoundaryAfter()
965 return (norm16 & DELTA_TCCC_MASK) <= DELTA_TCCC_1; in norm16HasDecompBoundaryAfter()
968 const uint16_t *mapping=getMapping(norm16); in norm16HasDecompBoundaryAfter()
1097 uint16_t norm16; in recompose() local
1109 UCPTRIE_FAST_U16_NEXT(normTrie, UCPTRIE_16, p, limit, c, norm16); in recompose()
1110 cc=getCCFromYesOrMaybe(norm16); in recompose()
1112 isMaybe(norm16) && in recompose()
1118 if(isJamoVT(norm16)) { in recompose()
1233 if((compositionsList=getCompositionsListForDecompYes(norm16))!=NULL) { in recompose()
1253 uint16_t norm16=getNorm16(a); // maps an out-of-range 'a' to inert norm16 in composePair() local
1255 if(isInert(norm16)) { in composePair()
1257 } else if(norm16<minYesNoMappingsOnly) { in composePair()
1259 if(isJamoL(norm16)) { in composePair()
1269 } else if(isHangulLV(norm16)) { in composePair()
1278 list=getMapping(norm16); in composePair()
1279 if(norm16>minYesNo) { // composite 'a' has both mapping & compositions list in composePair()
1285 } else if(norm16<minMaybeYes || MIN_NORMAL_MAYBE_YES<=norm16) { in composePair()
1288 list=getCompositionsListForMaybe(norm16); in composePair()
1335 uint16_t norm16 = 0; in compose() local
1344 isCompYesAndZeroCC(norm16=UCPTRIE_FAST_BMP_GET(normTrie, UCPTRIE_16, c)) in compose()
1356 norm16=UCPTRIE_FAST_SUPP_GET(normTrie, UCPTRIE_16, c); in compose()
1357 if(!isCompYesAndZeroCC(norm16)) { in compose()
1371 if (!isMaybeOrNonZeroCC(norm16)) { // minNoNo <= norm16 < minMaybeYes in compose()
1377 if (isDecompNoAlgorithmic(norm16)) { in compose()
1380 if (norm16HasCompBoundaryAfter(norm16, onlyContiguous) || in compose()
1385 if(!buffer.append(mapAlgorithmic(c, norm16), 0, errorCode)) { in compose()
1391 } else if (norm16 < minNoNoCompBoundaryBefore) { in compose()
1393 if (norm16HasCompBoundaryAfter(norm16, onlyContiguous) || in compose()
1398 const UChar *mapping = reinterpret_cast<const UChar *>(getMapping(norm16)); in compose()
1406 } else if (norm16 >= minNoNoEmpty) { in compose()
1421 } else if (isJamoVT(norm16) && prevBoundary != prevSrc) { in compose()
1484 } else if (norm16 > JAMO_VT) { // norm16 >= MIN_YES_YES_WITH_CC in compose()
1488 uint8_t cc = getCCFromNormalYesOrMaybe(norm16); // cc!=0 in compose()
1536 if (prevBoundary != prevSrc && !norm16HasCompBoundaryBefore(norm16)) { in compose()
1538 UCPTRIE_FAST_U16_PREV(normTrie, UCPTRIE_16, prevBoundary, p, c, norm16); in compose()
1539 if (!norm16HasCompBoundaryAfter(norm16, onlyContiguous)) { in compose()
1599 uint16_t norm16 = 0; in composeQuickCheck() local
1605 isCompYesAndZeroCC(norm16=UCPTRIE_FAST_BMP_GET(normTrie, UCPTRIE_16, c)) in composeQuickCheck()
1617 norm16=UCPTRIE_FAST_SUPP_GET(normTrie, UCPTRIE_16, c); in composeQuickCheck()
1618 if(!isCompYesAndZeroCC(norm16)) { in composeQuickCheck()
1633 if (norm16HasCompBoundaryBefore(norm16)) { in composeQuickCheck()
1648 if(isMaybeOrNonZeroCC(norm16)) { in composeQuickCheck()
1649 uint8_t cc=getCCFromYesOrMaybe(norm16); in composeQuickCheck()
1660 if (norm16 < MIN_YES_YES_WITH_CC) { in composeQuickCheck()
1672 UCPTRIE_FAST_U16_NEXT(normTrie, UCPTRIE_16, nextSrc, limit, c, norm16); in composeQuickCheck()
1673 if (isMaybeOrNonZeroCC(norm16)) { in composeQuickCheck()
1674 cc = getCCFromYesOrMaybe(norm16); in composeQuickCheck()
1684 if (isCompYesAndZeroCC(norm16)) { in composeQuickCheck()
1746 uint16_t norm16 = 0; in composeUTF8() local
1759 UCPTRIE_FAST_U8_NEXT(normTrie, UCPTRIE_16, src, limit, norm16); in composeUTF8()
1760 if (!isCompYesAndZeroCC(norm16)) { in composeUTF8()
1772 if (!isMaybeOrNonZeroCC(norm16)) { // minNoNo <= norm16 < minMaybeYes in composeUTF8()
1778 if (isDecompNoAlgorithmic(norm16)) { in composeUTF8()
1781 if (norm16HasCompBoundaryAfter(norm16, onlyContiguous) || in composeUTF8()
1788 appendCodePointDelta(prevSrc, src, getAlgorithmicDelta(norm16), *sink, edits); in composeUTF8()
1792 } else if (norm16 < minNoNoCompBoundaryBefore) { in composeUTF8()
1794 if (norm16HasCompBoundaryAfter(norm16, onlyContiguous) || in composeUTF8()
1801 const uint16_t *mapping = getMapping(norm16); in composeUTF8()
1810 } else if (norm16 >= minNoNoEmpty) { in composeUTF8()
1830 } else if (isJamoVT(norm16)) { in composeUTF8()
1893 } else if (norm16 > JAMO_VT) { // norm16 >= MIN_YES_YES_WITH_CC in composeUTF8()
1897 uint8_t cc = getCCFromNormalYesOrMaybe(norm16); // cc!=0 in composeUTF8()
1946 if (prevBoundary != prevSrc && !norm16HasCompBoundaryBefore(norm16)) { in composeUTF8()
1948 UCPTRIE_FAST_U8_PREV(normTrie, UCPTRIE_16, prevBoundary, p, norm16); in composeUTF8()
1949 if (!norm16HasCompBoundaryAfter(norm16, onlyContiguous)) { in composeUTF8()
1995 uint16_t norm16; in hasCompBoundaryBefore() local
1996 UCPTRIE_FAST_U16_NEXT(normTrie, UCPTRIE_16, src, limit, c, norm16); in hasCompBoundaryBefore()
1997 return norm16HasCompBoundaryBefore(norm16); in hasCompBoundaryBefore()
2004 uint16_t norm16; in hasCompBoundaryBefore() local
2005 UCPTRIE_FAST_U8_NEXT(normTrie, UCPTRIE_16, src, limit, norm16); in hasCompBoundaryBefore()
2006 return norm16HasCompBoundaryBefore(norm16); in hasCompBoundaryBefore()
2015 uint16_t norm16; in hasCompBoundaryAfter() local
2016 UCPTRIE_FAST_U16_PREV(normTrie, UCPTRIE_16, start, p, c, norm16); in hasCompBoundaryAfter()
2017 return norm16HasCompBoundaryAfter(norm16, onlyContiguous); in hasCompBoundaryAfter()
2025 uint16_t norm16; in hasCompBoundaryAfter() local
2026 UCPTRIE_FAST_U8_PREV(normTrie, UCPTRIE_16, start, p, norm16); in hasCompBoundaryAfter()
2027 return norm16HasCompBoundaryAfter(norm16, onlyContiguous); in hasCompBoundaryAfter()
2035 uint16_t norm16; in findPreviousCompBoundary() local
2036 UCPTRIE_FAST_U16_PREV(normTrie, UCPTRIE_16, start, p, c, norm16); in findPreviousCompBoundary()
2037 if (norm16HasCompBoundaryAfter(norm16, onlyContiguous)) { in findPreviousCompBoundary()
2040 if (hasCompBoundaryBefore(c, norm16)) { in findPreviousCompBoundary()
2052 uint16_t norm16; in findNextCompBoundary() local
2053 UCPTRIE_FAST_U16_NEXT(normTrie, UCPTRIE_16, p, limit, c, norm16); in findNextCompBoundary()
2054 if (hasCompBoundaryBefore(c, norm16)) { in findNextCompBoundary()
2057 if (norm16HasCompBoundaryAfter(norm16, onlyContiguous)) { in findNextCompBoundary()
2094 uint16_t norm16=getNorm16(c); in getFCD16FromNormData() local
2095 if (norm16 >= limitNoNo) { in getFCD16FromNormData()
2096 if(norm16>=MIN_NORMAL_MAYBE_YES) { in getFCD16FromNormData()
2098 norm16=getCCFromNormalYesOrMaybe(norm16); in getFCD16FromNormData()
2099 return norm16|(norm16<<8); in getFCD16FromNormData()
2100 } else if(norm16>=minMaybeYes) { in getFCD16FromNormData()
2103 uint16_t deltaTrailCC = norm16 & DELTA_TCCC_MASK; in getFCD16FromNormData()
2108 c=mapAlgorithmic(c, norm16); in getFCD16FromNormData()
2109 norm16=getRawNorm16(c); in getFCD16FromNormData()
2112 if(norm16<=minYesNo || isHangulLVT(norm16)) { in getFCD16FromNormData()
2117 const uint16_t *mapping=getMapping(norm16); in getFCD16FromNormData()
2119 norm16=firstUnit>>8; // tccc in getFCD16FromNormData()
2121 norm16|=*(mapping-1)&0xff00; // lccc in getFCD16FromNormData()
2123 return norm16; in getFCD16FromNormData()
2307 uint16_t norm16; in findPreviousFCDBoundary() local
2308 UCPTRIE_FAST_U16_PREV(normTrie, UCPTRIE_16, start, p, c, norm16); in findPreviousFCDBoundary()
2309 if (c < minDecompNoCP || norm16HasDecompBoundaryAfter(norm16)) { in findPreviousFCDBoundary()
2312 if (norm16HasDecompBoundaryBefore(norm16)) { in findPreviousFCDBoundary()
2323 uint16_t norm16; in findNextFCDBoundary() local
2324 UCPTRIE_FAST_U16_NEXT(normTrie, UCPTRIE_16, p, limit, c, norm16); in findNextFCDBoundary()
2325 if (c < minLcccCP || norm16HasDecompBoundaryBefore(norm16)) { in findNextFCDBoundary()
2328 if (norm16HasDecompBoundaryAfter(norm16)) { in findNextFCDBoundary()
2423 void Normalizer2Impl::makeCanonIterDataFromNorm16(UChar32 start, UChar32 end, const uint16_t norm16, in makeCanonIterDataFromNorm16() argument
2426 if(isInert(norm16) || (minYesNo<=norm16 && norm16<minNoNo)) { in makeCanonIterDataFromNorm16()
2438 if(isMaybeOrNonZeroCC(norm16)) { in makeCanonIterDataFromNorm16()
2441 if(norm16<MIN_NORMAL_MAYBE_YES) { in makeCanonIterDataFromNorm16()
2444 } else if(norm16<minYesNo) { in makeCanonIterDataFromNorm16()
2450 uint16_t norm16_2=norm16; in makeCanonIterDataFromNorm16()
2532 uint16_t norm16=getRawNorm16(c); in getCanonStartSet() local
2533 if(norm16==JAMO_L) { in getCanonStartSet()
2538 addComposites(getCompositionsList(norm16), set); in getCanonStartSet()