• Home
  • Raw
  • Download

Lines Matching refs:norm16

271     UNormalizationCheckResult getCompQuickCheck(uint16_t norm16) const {  in getCompQuickCheck()  argument
272 if(norm16<minNoNo || MIN_YES_YES_WITH_CC<=norm16) { in getCompQuickCheck()
274 } else if(minMaybeYes<=norm16) { in getCompQuickCheck()
280 … UBool isAlgorithmicNoNo(uint16_t norm16) const { return limitNoNo<=norm16 && norm16<minMaybeYes; } in isAlgorithmicNoNo() argument
281 UBool isCompNo(uint16_t norm16) const { return minNoNo<=norm16 && norm16<minMaybeYes; } in isCompNo() argument
282 UBool isDecompYes(uint16_t norm16) const { return norm16<minYesNo || minMaybeYes<=norm16; } in isDecompYes() argument
284 uint8_t getCC(uint16_t norm16) const { in getCC() argument
285 if(norm16>=MIN_NORMAL_MAYBE_YES) { in getCC()
286 return getCCFromNormalYesOrMaybe(norm16); in getCC()
288 if(norm16<minNoNo || limitNoNo<=norm16) { in getCC()
291 return getCCFromNoNo(norm16); in getCC()
293 static uint8_t getCCFromNormalYesOrMaybe(uint16_t norm16) { in getCCFromNormalYesOrMaybe() argument
294 return (uint8_t)(norm16 >> OFFSET_SHIFT); in getCCFromNormalYesOrMaybe()
296 static uint8_t getCCFromYesOrMaybe(uint16_t norm16) { in getCCFromYesOrMaybe() argument
297 return norm16>=MIN_NORMAL_MAYBE_YES ? getCCFromNormalYesOrMaybe(norm16) : 0; in getCCFromYesOrMaybe()
529 UBool norm16HasDecompBoundaryBefore(uint16_t norm16) const;
531 UBool norm16HasDecompBoundaryAfter(uint16_t norm16) const;
541 uint16_t norm16=getNorm16(c); in isCompInert() local
542 return isCompYesAndZeroCC(norm16) && in isCompInert()
543 (norm16 & HAS_COMP_BOUNDARY_AFTER) != 0 && in isCompInert()
544 (!onlyContiguous || isInert(norm16) || *getMapping(norm16) <= 0x1ff); in isCompInert()
554 UBool isMaybe(uint16_t norm16) const { return minMaybeYes<=norm16 && norm16<=JAMO_VT; } in isMaybe() argument
555 UBool isMaybeOrNonZeroCC(uint16_t norm16) const { return norm16>=minMaybeYes; } in isMaybeOrNonZeroCC() argument
556 static UBool isInert(uint16_t norm16) { return norm16==INERT; } in isInert() argument
557 static UBool isJamoL(uint16_t norm16) { return norm16==JAMO_L; } in isJamoL() argument
558 static UBool isJamoVT(uint16_t norm16) { return norm16==JAMO_VT; } in isJamoVT() argument
560 UBool isHangulLV(uint16_t norm16) const { return norm16==minYesNo; } in isHangulLV() argument
561 UBool isHangulLVT(uint16_t norm16) const { in isHangulLVT() argument
562 return norm16==hangulLVT(); in isHangulLVT()
564 UBool isCompYesAndZeroCC(uint16_t norm16) const { return norm16<minNoNo; } in isCompYesAndZeroCC() argument
574 UBool isDecompYesAndZeroCC(uint16_t norm16) const { in isDecompYesAndZeroCC() argument
575 return norm16<minYesNo || in isDecompYesAndZeroCC()
576 norm16==JAMO_VT || in isDecompYesAndZeroCC()
577 (minMaybeYes<=norm16 && norm16<=MIN_NORMAL_MAYBE_YES); in isDecompYesAndZeroCC()
584 UBool isMostDecompYesAndZeroCC(uint16_t norm16) const { in isMostDecompYesAndZeroCC() argument
585 return norm16<minYesNo || norm16==MIN_NORMAL_MAYBE_YES || norm16==JAMO_VT; in isMostDecompYesAndZeroCC()
587 UBool isDecompNoAlgorithmic(uint16_t norm16) const { return norm16>=limitNoNo; } in isDecompNoAlgorithmic() argument
594 uint8_t getCCFromNoNo(uint16_t norm16) const { in getCCFromNoNo() argument
595 const uint16_t *mapping=getMapping(norm16); in getCCFromNoNo()
603 uint8_t getTrailCCFromCompYesAndZeroCC(uint16_t norm16) const { in getTrailCCFromCompYesAndZeroCC() argument
604 if(norm16<=minYesNo) { in getTrailCCFromCompYesAndZeroCC()
608 return (uint8_t)(*getMapping(norm16)>>8); // tccc from yesNo in getTrailCCFromCompYesAndZeroCC()
615 UChar32 mapAlgorithmic(UChar32 c, uint16_t norm16) const { in mapAlgorithmic() argument
616 return c+(norm16>>DELTA_SHIFT)-centerNoNoDelta; in mapAlgorithmic()
618 UChar32 getAlgorithmicDelta(uint16_t norm16) const { in getAlgorithmicDelta() argument
619 return (norm16>>DELTA_SHIFT)-centerNoNoDelta; in getAlgorithmicDelta()
623 const uint16_t *getMapping(uint16_t norm16) const { return extraData+(norm16>>OFFSET_SHIFT); } in getMapping() argument
624 const uint16_t *getCompositionsListForDecompYes(uint16_t norm16) const { in getCompositionsListForDecompYes() argument
625 if(norm16<JAMO_L || MIN_NORMAL_MAYBE_YES<=norm16) { in getCompositionsListForDecompYes()
627 } else if(norm16<minMaybeYes) { in getCompositionsListForDecompYes()
628 return getMapping(norm16); // for yesYes; if Jamo L: harmless empty list in getCompositionsListForDecompYes()
630 return maybeYesCompositions+norm16-minMaybeYes; in getCompositionsListForDecompYes()
633 const uint16_t *getCompositionsListForComposite(uint16_t norm16) const { in getCompositionsListForComposite() argument
635 const uint16_t *list=getMapping(norm16); in getCompositionsListForComposite()
640 const uint16_t *getCompositionsListForMaybe(uint16_t norm16) const { in getCompositionsListForMaybe() argument
642 return maybeYesCompositions+((norm16-minMaybeYes)>>OFFSET_SHIFT); in getCompositionsListForMaybe()
648 const uint16_t *getCompositionsList(uint16_t norm16) const { in getCompositionsList() argument
649 return isDecompYes(norm16) ? in getCompositionsList()
650 getCompositionsListForDecompYes(norm16) : in getCompositionsList()
651 getCompositionsListForComposite(norm16); in getCompositionsList()
664 UBool decompose(UChar32 c, uint16_t norm16,
676 UBool hasCompBoundaryBefore(UChar32 c, uint16_t norm16) const { in hasCompBoundaryBefore() argument
677 return c<minCompNoMaybeCP || norm16HasCompBoundaryBefore(norm16); in hasCompBoundaryBefore()
679 UBool norm16HasCompBoundaryBefore(uint16_t norm16) const { in norm16HasCompBoundaryBefore() argument
680 return norm16 < minNoNoCompNoMaybeCC || isAlgorithmicNoNo(norm16); in norm16HasCompBoundaryBefore()
688 UBool norm16HasCompBoundaryAfter(uint16_t norm16, UBool onlyContiguous) const { in norm16HasCompBoundaryAfter() argument
689 return (norm16 & HAS_COMP_BOUNDARY_AFTER) != 0 && in norm16HasCompBoundaryAfter()
690 (!onlyContiguous || isTrailCC01ForCompBoundaryAfter(norm16)); in norm16HasCompBoundaryAfter()
693 UBool isTrailCC01ForCompBoundaryAfter(uint16_t norm16) const { in isTrailCC01ForCompBoundaryAfter() argument
694 return isInert(norm16) || (isDecompNoAlgorithmic(norm16) ? in isTrailCC01ForCompBoundaryAfter()
695 (norm16 & DELTA_TCCC_MASK) <= DELTA_TCCC_1 : *getMapping(norm16) <= 0x1ff); in isTrailCC01ForCompBoundaryAfter()
704 void makeCanonIterDataFromNorm16(UChar32 start, UChar32 end, const uint16_t norm16,