Lines Matching refs:norm16

317     void handleRange(UChar32 start, UChar32 end, uint16_t norm16) {  in handleRange()  argument
318 if(impl.isAlgorithmicNoNo(norm16)) { in handleRange()
493 uint16_t norm16=0; in decompose() local
503 isMostDecompYesAndZeroCC(norm16=UTRIE2_GET16_FROM_U16_SINGLE_LEAD(normTrie, c)) in decompose()
520 if(isMostDecompYesAndZeroCC(norm16=getNorm16(c))) { in decompose()
545 if(!decompose(c, norm16, *buffer, errorCode)) { in decompose()
549 if(isDecompYes(norm16)) { in decompose()
550 uint8_t cc=getCCFromYesOrMaybe(norm16); in decompose()
574 uint16_t norm16; in decomposeShort() local
575 UTRIE2_U16_NEXT16(normTrie, src, limit, c, norm16); in decomposeShort()
576 if(!decompose(c, norm16, buffer, errorCode)) { in decomposeShort()
583 UBool Normalizer2Impl::decompose(UChar32 c, uint16_t norm16, in decompose() argument
589 if(isDecompYes(norm16)) { in decompose()
591 return buffer.append(c, getCCFromYesOrMaybe(norm16), errorCode); in decompose()
592 } else if(isHangul(norm16)) { in decompose()
596 } else if(isDecompNoAlgorithmic(norm16)) { in decompose()
597 c=mapAlgorithmic(c, norm16); in decompose()
598 norm16=getNorm16(c); in decompose()
601 const uint16_t *mapping=getMapping(norm16); in decompose()
619 uint16_t norm16; in getDecomposition() local
621 if(c<minDecompNoCP || isDecompYes(norm16=getNorm16(c))) { in getDecomposition()
624 } else if(isHangul(norm16)) { in getDecomposition()
628 } else if(isDecompNoAlgorithmic(norm16)) { in getDecomposition()
629 c=mapAlgorithmic(c, norm16); in getDecomposition()
635 const uint16_t *mapping=getMapping(norm16); in getDecomposition()
650 uint16_t norm16; in getRawDecomposition() local
651 if(c<minDecompNoCP || isDecompYes(norm16=getNorm16(c))) { in getRawDecomposition()
654 } else if(isHangul(norm16)) { in getRawDecomposition()
659 } else if(isDecompNoAlgorithmic(norm16)) { in getRawDecomposition()
660 c=mapAlgorithmic(c, norm16); in getRawDecomposition()
666 const uint16_t *mapping=getMapping(norm16); in getRawDecomposition()
726 uint16_t norm16=getNorm16(c); in hasDecompBoundary() local
727 if(isHangul(norm16) || isDecompYesAndZeroCC(norm16)) { in hasDecompBoundary()
729 } else if(norm16>MIN_NORMAL_MAYBE_YES) { in hasDecompBoundary()
731 } else if(isDecompNoAlgorithmic(norm16)) { in hasDecompBoundary()
732 c=mapAlgorithmic(c, norm16); in hasDecompBoundary()
735 const uint16_t *mapping=getMapping(norm16); in hasDecompBoundary()
871 uint16_t norm16; in recompose() local
883 UTRIE2_U16_NEXT16(normTrie, p, limit, c, norm16); in recompose()
884 cc=getCCFromYesOrMaybe(norm16); in recompose()
886 isMaybe(norm16) && in recompose()
892 if(isJamoVT(norm16)) { in recompose()
1007 if((compositionsList=getCompositionsListForDecompYes(norm16))!=NULL) { in recompose()
1027 uint16_t norm16=getNorm16(a); // maps an out-of-range 'a' to inert norm16=0 in composePair() local
1029 if(isInert(norm16)) { in composePair()
1031 } else if(norm16<minYesNoMappingsOnly) { in composePair()
1032 if(isJamoL(norm16)) { in composePair()
1042 } else if(isHangul(norm16)) { in composePair()
1051 list=extraData+norm16; in composePair()
1052 if(norm16>minYesNo) { // composite 'a' has both mapping & compositions list in composePair()
1058 } else if(norm16<minMaybeYes || MIN_NORMAL_MAYBE_YES<=norm16) { in composePair()
1061 list=maybeYesCompositions+norm16-minMaybeYes; in composePair()
1113 uint16_t norm16=0; in compose() local
1122 isCompYesAndZeroCC(norm16=UTRIE2_GET16_FROM_U16_SINGLE_LEAD(normTrie, c)) in compose()
1139 if(isCompYesAndZeroCC(norm16=getNorm16(c))) { in compose()
1179 if(isJamoVT(norm16) && prevBoundary!=prevSrc) { in compose()
1256 if(norm16>=MIN_YES_YES_WITH_CC) { in compose()
1257 uint8_t cc=(uint8_t)norm16; // cc!=0 in compose()
1285 } else if(!doCompose && !isMaybeOrNonZeroCC(norm16)) { in compose()
1304 if(hasCompBoundaryBefore(c, norm16)) { in compose()
1359 uint16_t norm16=0; in composeQuickCheck() local
1369 isCompYesAndZeroCC(norm16=UTRIE2_GET16_FROM_U16_SINGLE_LEAD(normTrie, c)) in composeQuickCheck()
1386 if(isCompYesAndZeroCC(norm16=getNorm16(c))) { in composeQuickCheck()
1412 if(isMaybeOrNonZeroCC(norm16)) { in composeQuickCheck()
1413 uint8_t cc=getCCFromYesOrMaybe(norm16); in composeQuickCheck()
1430 if(norm16<MIN_YES_YES_WITH_CC) { in composeQuickCheck()
1489 UBool Normalizer2Impl::hasCompBoundaryBefore(UChar32 c, uint16_t norm16) const { in hasCompBoundaryBefore()
1491 if(isCompYesAndZeroCC(norm16)) { in hasCompBoundaryBefore()
1493 } else if(isMaybeOrNonZeroCC(norm16)) { in hasCompBoundaryBefore()
1495 } else if(isDecompNoAlgorithmic(norm16)) { in hasCompBoundaryBefore()
1496 c=mapAlgorithmic(c, norm16); in hasCompBoundaryBefore()
1497 norm16=getNorm16(c); in hasCompBoundaryBefore()
1500 const uint16_t *mapping=getMapping(norm16); in hasCompBoundaryBefore()
1518 uint16_t norm16=getNorm16(c); in hasCompBoundaryAfter() local
1519 if(isInert(norm16)) { in hasCompBoundaryAfter()
1521 } else if(norm16<=minYesNo) { in hasCompBoundaryAfter()
1525 return isHangul(norm16) && !Hangul::isHangulWithoutJamoT((UChar)c); in hasCompBoundaryAfter()
1526 } else if(norm16>= (testInert ? minNoNo : minMaybeYes)) { in hasCompBoundaryAfter()
1528 } else if(isDecompNoAlgorithmic(norm16)) { in hasCompBoundaryAfter()
1529 c=mapAlgorithmic(c, norm16); in hasCompBoundaryAfter()
1534 const uint16_t *mapping=getMapping(norm16); in hasCompBoundaryAfter()
1551 uint16_t norm16; in findPreviousCompBoundary() local
1553 norm16=iter.previous16(); in findPreviousCompBoundary()
1554 } while(!hasCompBoundaryBefore(iter.codePoint, norm16)); in findPreviousCompBoundary()
1562 uint16_t norm16; in findNextCompBoundary() local
1564 norm16=iter.next16(); in findNextCompBoundary()
1565 } while(!hasCompBoundaryBefore(iter.codePoint, norm16)); in findNextCompBoundary()
1581 uint16_t norm16=getNorm16(c); in getFCD16FromNormData() local
1582 if(norm16<=minYesNo) { in getFCD16FromNormData()
1585 } else if(norm16>=MIN_NORMAL_MAYBE_YES) { in getFCD16FromNormData()
1587 norm16&=0xff; in getFCD16FromNormData()
1588 return norm16|(norm16<<8); in getFCD16FromNormData()
1589 } else if(norm16>=minMaybeYes) { in getFCD16FromNormData()
1591 } else if(isDecompNoAlgorithmic(norm16)) { in getFCD16FromNormData()
1592 c=mapAlgorithmic(c, norm16); in getFCD16FromNormData()
1595 const uint16_t *mapping=getMapping(norm16); in getFCD16FromNormData()
1603 norm16=firstUnit>>8; // tccc in getFCD16FromNormData()
1605 norm16|=*(mapping-1)&0xff00; // lccc in getFCD16FromNormData()
1607 return norm16; in getFCD16FromNormData()
1884 void Normalizer2Impl::makeCanonIterDataFromNorm16(UChar32 start, UChar32 end, uint16_t norm16, in makeCanonIterDataFromNorm16() argument
1887 if(norm16==0 || (minYesNo<=norm16 && norm16<minNoNo)) { in makeCanonIterDataFromNorm16()
1899 if(norm16>=minMaybeYes) { in makeCanonIterDataFromNorm16()
1902 if(norm16<MIN_NORMAL_MAYBE_YES) { in makeCanonIterDataFromNorm16()
1905 } else if(norm16<minYesNo) { in makeCanonIterDataFromNorm16()
1910 uint16_t norm16_2=norm16; in makeCanonIterDataFromNorm16()
1989 uint16_t norm16=getNorm16(c); in getCanonStartSet() local
1990 if(norm16==JAMO_L) { in getCanonStartSet()
1995 addComposites(getCompositionsList(norm16), set); in getCanonStartSet()