• Home
  • Raw
  • Download

Lines Matching refs:norm16

467     uint32_t norm16;  in addLcccChars()  local
469 nullptr, nullptr, &norm16)) >= 0) { in addLcccChars()
470 if (norm16 > Normalizer2Impl::MIN_NORMAL_MAYBE_YES && in addLcccChars()
471 norm16 != Normalizer2Impl::JAMO_VT) { in addLcccChars()
473 } else if (minNoNoCompNoMaybeCC <= norm16 && norm16 < limitNoNo) { in addLcccChars()
600 uint16_t norm16=0; in decompose() local
610 isMostDecompYesAndZeroCC(norm16=UCPTRIE_FAST_BMP_GET(normTrie, UCPTRIE_16, c)) in decompose()
619 norm16=UCPTRIE_FAST_SUPP_GET(normTrie, UCPTRIE_16, c); in decompose()
620 if(isMostDecompYesAndZeroCC(norm16)) { in decompose()
648 if(!decompose(c, norm16, *buffer, errorCode)) { in decompose()
652 if(isDecompYes(norm16)) { in decompose()
653 uint8_t cc=getCCFromYesOrMaybe(norm16); in decompose()
685 uint16_t norm16; in decomposeShort() local
686 UCPTRIE_FAST_U16_NEXT(normTrie, UCPTRIE_16, src, limit, c, norm16); in decomposeShort()
687 if (stopAtCompBoundary && norm16HasCompBoundaryBefore(norm16)) { in decomposeShort()
690 if(!decompose(c, norm16, buffer, errorCode)) { in decomposeShort()
693 if (stopAtCompBoundary && norm16HasCompBoundaryAfter(norm16, onlyContiguous)) { in decomposeShort()
700 UBool Normalizer2Impl::decompose(UChar32 c, uint16_t norm16, in decompose() argument
704 if (norm16 >= limitNoNo) { in decompose()
705 if (isMaybeOrNonZeroCC(norm16)) { in decompose()
706 return buffer.append(c, getCCFromYesOrMaybe(norm16), errorCode); in decompose()
709 c=mapAlgorithmic(c, norm16); in decompose()
710 norm16=getRawNorm16(c); in decompose()
712 if (norm16 < minYesNo) { in decompose()
715 } else if(isHangulLV(norm16) || isHangulLVT(norm16)) { in decompose()
721 const uint16_t *mapping=getMapping(norm16); in decompose()
754 uint16_t norm16 = 0; in decomposeUTF8() local
768 UCPTRIE_FAST_U8_NEXT(normTrie, UCPTRIE_16, src, limit, norm16); in decomposeUTF8()
769 if (!isMostDecompYesAndZeroCC(norm16)) { in decomposeUTF8()
790 if (isMaybeOrNonZeroCC(norm16)) { in decomposeUTF8()
792 uint8_t cc = getCCFromYesOrMaybe(norm16); in decomposeUTF8()
812 if (prevBoundary != prevSrc && norm16HasDecompBoundaryBefore(norm16)) { in decomposeUTF8()
839 if (isMaybeOrNonZeroCC(norm16) && buffer.equals(prevBoundary, src)) { in decomposeUTF8()
865 uint16_t norm16; in decomposeShort() local
866 UCPTRIE_FAST_U8_NEXT(normTrie, UCPTRIE_16, src, limit, norm16); in decomposeShort()
869 if (norm16 >= limitNoNo) { in decomposeShort()
870 if (isMaybeOrNonZeroCC(norm16)) { in decomposeShort()
872 uint8_t cc = getCCFromYesOrMaybe(norm16); in decomposeShort()
890 c = mapAlgorithmic(c, norm16); in decomposeShort()
891 norm16 = getRawNorm16(c); in decomposeShort()
892 } else if (stopAt != STOP_AT_LIMIT && norm16 < minNoNoCompNoMaybeCC) { in decomposeShort()
901 U_ASSERT(c >= 0 || norm16 != INERT); in decomposeShort()
902 if (norm16 < minYesNo) { in decomposeShort()
910 } else if (isHangulLV(norm16) || isHangulLVT(norm16)) { in decomposeShort()
921 const uint16_t *mapping = getMapping(norm16); in decomposeShort()
938 … if ((stopAt == STOP_AT_COMP_BOUNDARY && norm16HasCompBoundaryAfter(norm16, onlyContiguous)) || in decomposeShort()
948 uint16_t norm16; in getDecomposition() local
949 if(c<minDecompNoCP || isMaybeOrNonZeroCC(norm16=getNorm16(c))) { in getDecomposition()
954 if(isDecompNoAlgorithmic(norm16)) { in getDecomposition()
956 c=mapAlgorithmic(c, norm16); in getDecomposition()
961 norm16 = getRawNorm16(c); in getDecomposition()
963 if (norm16 < minYesNo) { in getDecomposition()
965 } else if(isHangulLV(norm16) || isHangulLVT(norm16)) { in getDecomposition()
971 const uint16_t *mapping=getMapping(norm16); in getDecomposition()
982 uint16_t norm16; in getRawDecomposition() local
983 if(c<minDecompNoCP || isDecompYes(norm16=getNorm16(c))) { in getRawDecomposition()
986 } else if(isHangulLV(norm16) || isHangulLVT(norm16)) { in getRawDecomposition()
991 } else if(isDecompNoAlgorithmic(norm16)) { in getRawDecomposition()
992 c=mapAlgorithmic(c, norm16); in getRawDecomposition()
998 const uint16_t *mapping=getMapping(norm16); in getRawDecomposition()
1039 uint16_t norm16; in decomposeAndAppend() local
1040 UCPTRIE_FAST_U16_NEXT(normTrie, UCPTRIE_16, p, limit, c, norm16); in decomposeAndAppend()
1041 if ((cc = getCC(norm16)) == 0) { in decomposeAndAppend()
1065 UBool Normalizer2Impl::norm16HasDecompBoundaryBefore(uint16_t norm16) const { in norm16HasDecompBoundaryBefore()
1066 if (norm16 < minNoNoCompNoMaybeCC) { in norm16HasDecompBoundaryBefore()
1069 if (norm16 >= limitNoNo) { in norm16HasDecompBoundaryBefore()
1070 return norm16 <= MIN_NORMAL_MAYBE_YES || norm16 == JAMO_VT; in norm16HasDecompBoundaryBefore()
1073 const uint16_t *mapping=getMapping(norm16); in norm16HasDecompBoundaryBefore()
1089 UBool Normalizer2Impl::norm16HasDecompBoundaryAfter(uint16_t norm16) const { in norm16HasDecompBoundaryAfter()
1090 if(norm16 <= minYesNo || isHangulLVT(norm16)) { in norm16HasDecompBoundaryAfter()
1093 if (norm16 >= limitNoNo) { in norm16HasDecompBoundaryAfter()
1094 if (isMaybeOrNonZeroCC(norm16)) { in norm16HasDecompBoundaryAfter()
1095 return norm16 <= MIN_NORMAL_MAYBE_YES || norm16 == JAMO_VT; in norm16HasDecompBoundaryAfter()
1098 return (norm16 & DELTA_TCCC_MASK) <= DELTA_TCCC_1; in norm16HasDecompBoundaryAfter()
1101 const uint16_t *mapping=getMapping(norm16); in norm16HasDecompBoundaryAfter()
1230 uint16_t norm16; in recompose() local
1242 UCPTRIE_FAST_U16_NEXT(normTrie, UCPTRIE_16, p, limit, c, norm16); in recompose()
1243 cc=getCCFromYesOrMaybe(norm16); in recompose()
1245 isMaybe(norm16) && in recompose()
1251 if(isJamoVT(norm16)) { in recompose()
1366 if((compositionsList=getCompositionsListForDecompYes(norm16))!=NULL) { in recompose()
1386 uint16_t norm16=getNorm16(a); // maps an out-of-range 'a' to inert norm16 in composePair() local
1388 if(isInert(norm16)) { in composePair()
1390 } else if(norm16<minYesNoMappingsOnly) { in composePair()
1392 if(isJamoL(norm16)) { in composePair()
1402 } else if(isHangulLV(norm16)) { in composePair()
1411 list=getMapping(norm16); in composePair()
1412 if(norm16>minYesNo) { // composite 'a' has both mapping & compositions list in composePair()
1418 } else if(norm16<minMaybeYes || MIN_NORMAL_MAYBE_YES<=norm16) { in composePair()
1421 list=getCompositionsListForMaybe(norm16); in composePair()
1468 uint16_t norm16 = 0; in compose() local
1477 isCompYesAndZeroCC(norm16=UCPTRIE_FAST_BMP_GET(normTrie, UCPTRIE_16, c)) in compose()
1489 norm16=UCPTRIE_FAST_SUPP_GET(normTrie, UCPTRIE_16, c); in compose()
1490 if(!isCompYesAndZeroCC(norm16)) { in compose()
1504 if (!isMaybeOrNonZeroCC(norm16)) { // minNoNo <= norm16 < minMaybeYes in compose()
1510 if (isDecompNoAlgorithmic(norm16)) { in compose()
1513 if (norm16HasCompBoundaryAfter(norm16, onlyContiguous) || in compose()
1518 if(!buffer.append(mapAlgorithmic(c, norm16), 0, errorCode)) { in compose()
1524 } else if (norm16 < minNoNoCompBoundaryBefore) { in compose()
1526 if (norm16HasCompBoundaryAfter(norm16, onlyContiguous) || in compose()
1531 const UChar *mapping = reinterpret_cast<const UChar *>(getMapping(norm16)); in compose()
1539 } else if (norm16 >= minNoNoEmpty) { in compose()
1554 } else if (isJamoVT(norm16) && prevBoundary != prevSrc) { in compose()
1617 } else if (norm16 > JAMO_VT) { // norm16 >= MIN_YES_YES_WITH_CC in compose()
1621 uint8_t cc = getCCFromNormalYesOrMaybe(norm16); // cc!=0 in compose()
1669 if (prevBoundary != prevSrc && !norm16HasCompBoundaryBefore(norm16)) { in compose()
1671 UCPTRIE_FAST_U16_PREV(normTrie, UCPTRIE_16, prevBoundary, p, c, norm16); in compose()
1672 if (!norm16HasCompBoundaryAfter(norm16, onlyContiguous)) { in compose()
1732 uint16_t norm16 = 0; in composeQuickCheck() local
1738 isCompYesAndZeroCC(norm16=UCPTRIE_FAST_BMP_GET(normTrie, UCPTRIE_16, c)) in composeQuickCheck()
1750 norm16=UCPTRIE_FAST_SUPP_GET(normTrie, UCPTRIE_16, c); in composeQuickCheck()
1751 if(!isCompYesAndZeroCC(norm16)) { in composeQuickCheck()
1766 if (norm16HasCompBoundaryBefore(norm16)) { in composeQuickCheck()
1781 if(isMaybeOrNonZeroCC(norm16)) { in composeQuickCheck()
1782 uint8_t cc=getCCFromYesOrMaybe(norm16); in composeQuickCheck()
1793 if (norm16 < MIN_YES_YES_WITH_CC) { in composeQuickCheck()
1805 UCPTRIE_FAST_U16_NEXT(normTrie, UCPTRIE_16, nextSrc, limit, c, norm16); in composeQuickCheck()
1806 if (isMaybeOrNonZeroCC(norm16)) { in composeQuickCheck()
1807 cc = getCCFromYesOrMaybe(norm16); in composeQuickCheck()
1817 if (isCompYesAndZeroCC(norm16)) { in composeQuickCheck()
1879 uint16_t norm16 = 0; in composeUTF8() local
1892 UCPTRIE_FAST_U8_NEXT(normTrie, UCPTRIE_16, src, limit, norm16); in composeUTF8()
1893 if (!isCompYesAndZeroCC(norm16)) { in composeUTF8()
1905 if (!isMaybeOrNonZeroCC(norm16)) { // minNoNo <= norm16 < minMaybeYes in composeUTF8()
1911 if (isDecompNoAlgorithmic(norm16)) { in composeUTF8()
1914 if (norm16HasCompBoundaryAfter(norm16, onlyContiguous) || in composeUTF8()
1921 appendCodePointDelta(prevSrc, src, getAlgorithmicDelta(norm16), *sink, edits); in composeUTF8()
1925 } else if (norm16 < minNoNoCompBoundaryBefore) { in composeUTF8()
1927 if (norm16HasCompBoundaryAfter(norm16, onlyContiguous) || in composeUTF8()
1934 const uint16_t *mapping = getMapping(norm16); in composeUTF8()
1943 } else if (norm16 >= minNoNoEmpty) { in composeUTF8()
1963 } else if (isJamoVT(norm16)) { in composeUTF8()
2026 } else if (norm16 > JAMO_VT) { // norm16 >= MIN_YES_YES_WITH_CC in composeUTF8()
2030 uint8_t cc = getCCFromNormalYesOrMaybe(norm16); // cc!=0 in composeUTF8()
2079 if (prevBoundary != prevSrc && !norm16HasCompBoundaryBefore(norm16)) { in composeUTF8()
2081 UCPTRIE_FAST_U8_PREV(normTrie, UCPTRIE_16, prevBoundary, p, norm16); in composeUTF8()
2082 if (!norm16HasCompBoundaryAfter(norm16, onlyContiguous)) { in composeUTF8()
2128 uint16_t norm16; in hasCompBoundaryBefore() local
2129 UCPTRIE_FAST_U16_NEXT(normTrie, UCPTRIE_16, src, limit, c, norm16); in hasCompBoundaryBefore()
2130 return norm16HasCompBoundaryBefore(norm16); in hasCompBoundaryBefore()
2137 uint16_t norm16; in hasCompBoundaryBefore() local
2138 UCPTRIE_FAST_U8_NEXT(normTrie, UCPTRIE_16, src, limit, norm16); in hasCompBoundaryBefore()
2139 return norm16HasCompBoundaryBefore(norm16); in hasCompBoundaryBefore()
2148 uint16_t norm16; in hasCompBoundaryAfter() local
2149 UCPTRIE_FAST_U16_PREV(normTrie, UCPTRIE_16, start, p, c, norm16); in hasCompBoundaryAfter()
2150 return norm16HasCompBoundaryAfter(norm16, onlyContiguous); in hasCompBoundaryAfter()
2158 uint16_t norm16; in hasCompBoundaryAfter() local
2159 UCPTRIE_FAST_U8_PREV(normTrie, UCPTRIE_16, start, p, norm16); in hasCompBoundaryAfter()
2160 return norm16HasCompBoundaryAfter(norm16, onlyContiguous); in hasCompBoundaryAfter()
2168 uint16_t norm16; in findPreviousCompBoundary() local
2169 UCPTRIE_FAST_U16_PREV(normTrie, UCPTRIE_16, start, p, c, norm16); in findPreviousCompBoundary()
2170 if (norm16HasCompBoundaryAfter(norm16, onlyContiguous)) { in findPreviousCompBoundary()
2173 if (hasCompBoundaryBefore(c, norm16)) { in findPreviousCompBoundary()
2185 uint16_t norm16; in findNextCompBoundary() local
2186 UCPTRIE_FAST_U16_NEXT(normTrie, UCPTRIE_16, p, limit, c, norm16); in findNextCompBoundary()
2187 if (hasCompBoundaryBefore(c, norm16)) { in findNextCompBoundary()
2190 if (norm16HasCompBoundaryAfter(norm16, onlyContiguous)) { in findNextCompBoundary()
2234 uint16_t norm16=getNorm16(c); in getFCD16FromNormData() local
2235 if (norm16 >= limitNoNo) { in getFCD16FromNormData()
2236 if(norm16>=MIN_NORMAL_MAYBE_YES) { in getFCD16FromNormData()
2238 norm16=getCCFromNormalYesOrMaybe(norm16); in getFCD16FromNormData()
2239 return norm16|(norm16<<8); in getFCD16FromNormData()
2240 } else if(norm16>=minMaybeYes) { in getFCD16FromNormData()
2243 uint16_t deltaTrailCC = norm16 & DELTA_TCCC_MASK; in getFCD16FromNormData()
2248 c=mapAlgorithmic(c, norm16); in getFCD16FromNormData()
2249 norm16=getRawNorm16(c); in getFCD16FromNormData()
2252 if(norm16<=minYesNo || isHangulLVT(norm16)) { in getFCD16FromNormData()
2257 const uint16_t *mapping=getMapping(norm16); in getFCD16FromNormData()
2259 norm16=firstUnit>>8; // tccc in getFCD16FromNormData()
2261 norm16|=*(mapping-1)&0xff00; // lccc in getFCD16FromNormData()
2263 return norm16; in getFCD16FromNormData()
2450 uint16_t norm16; in findPreviousFCDBoundary() local
2451 UCPTRIE_FAST_U16_PREV(normTrie, UCPTRIE_16, start, p, c, norm16); in findPreviousFCDBoundary()
2452 if (c < minDecompNoCP || norm16HasDecompBoundaryAfter(norm16)) { in findPreviousFCDBoundary()
2455 if (norm16HasDecompBoundaryBefore(norm16)) { in findPreviousFCDBoundary()
2466 uint16_t norm16; in findNextFCDBoundary() local
2467 UCPTRIE_FAST_U16_NEXT(normTrie, UCPTRIE_16, p, limit, c, norm16); in findNextFCDBoundary()
2468 if (c < minLcccCP || norm16HasDecompBoundaryBefore(norm16)) { in findNextFCDBoundary()
2471 if (norm16HasDecompBoundaryAfter(norm16)) { in findNextFCDBoundary()
2569 void Normalizer2Impl::makeCanonIterDataFromNorm16(UChar32 start, UChar32 end, const uint16_t norm16, in makeCanonIterDataFromNorm16() argument
2572 if(isInert(norm16) || (minYesNo<=norm16 && norm16<minNoNo)) { in makeCanonIterDataFromNorm16()
2584 if(isMaybeOrNonZeroCC(norm16)) { in makeCanonIterDataFromNorm16()
2587 if(norm16<MIN_NORMAL_MAYBE_YES) { in makeCanonIterDataFromNorm16()
2590 } else if(norm16<minYesNo) { in makeCanonIterDataFromNorm16()
2596 uint16_t norm16_2=norm16; in makeCanonIterDataFromNorm16()
2678 uint16_t norm16=getRawNorm16(c); in getCanonStartSet() local
2679 if(norm16==JAMO_L) { in getCanonStartSet()
2684 addComposites(getCompositionsList(norm16), set); in getCanonStartSet()