Home | History | Annotate | Download | only in common

Lines Matching refs:norm16

241     UNormalizationCheckResult getCompQuickCheck(uint16_t norm16) const {
242 if(norm16<minNoNo || MIN_YES_YES_WITH_CC<=norm16) {
244 } else if(minMaybeYes<=norm16) {
250 UBool isAlgorithmicNoNo(uint16_t norm16) const { return limitNoNo<=norm16 && norm16<minMaybeYes; }
251 UBool isCompNo(uint16_t norm16) const { return minNoNo<=norm16 && norm16<minMaybeYes; }
252 UBool isDecompYes(uint16_t norm16) const { return norm16<minYesNo || minMaybeYes<=norm16; }
254 uint8_t getCC(uint16_t norm16) const {
255 if(norm16>=MIN_NORMAL_MAYBE_YES) {
256 return (uint8_t)norm16;
258 if(norm16<minNoNo || limitNoNo<=norm16) {
261 return getCCFromNoNo(norm16);
263 static uint8_t getCCFromYesOrMaybe(uint16_t norm16) {
264 return norm16>=MIN_NORMAL_MAYBE_YES ? (uint8_t)norm16 : 0;
341 void makeCanonIterDataFromNorm16(UChar32 start, UChar32 end, uint16_t norm16,
394 // Norm16 value thresholds for quick check combinations and types of extra data.
484 UBool isMaybe(uint16_t norm16) const { return minMaybeYes<=norm16 && norm16<=JAMO_VT; }
485 UBool isMaybeOrNonZeroCC(uint16_t norm16) const { return norm16>=minMaybeYes; }
486 static UBool isInert(uint16_t norm16) { return norm16==0; }
487 static UBool isJamoL(uint16_t norm16) { return norm16==1; }
488 static UBool isJamoVT(uint16_t norm16) { return norm16==JAMO_VT; }
489 UBool isHangul(uint16_t norm16) const { return norm16==minYesNo; }
490 UBool isCompYesAndZeroCC(uint16_t norm16) const { return norm16<minNoNo; }
491 // UBool isCompYes(uint16_t norm16) const {
492 // return norm16>=MIN_YES_YES_WITH_CC || norm16<minNoNo;
494 // UBool isCompYesOrMaybe(uint16_t norm16) const {
495 // return norm16<minNoNo || minMaybeYes<=norm16;
497 // UBool hasZeroCCFromDecompYes(uint16_t norm16) const {
498 // return norm16<=MIN_NORMAL_MAYBE_YES || norm16==JAMO_VT;
500 UBool isDecompYesAndZeroCC(uint16_t norm16) const {
501 return norm16<minYesNo ||
502 norm16==JAMO_VT ||
503 (minMaybeYes<=norm16 && norm16<=MIN_NORMAL_MAYBE_YES);
510 UBool isMostDecompYesAndZeroCC(uint16_t norm16) const {
511 return norm16<minYesNo || norm16==MIN_NORMAL_MAYBE_YES || norm16==JAMO_VT;
513 UBool isDecompNoAlgorithmic(uint16_t norm16) const { return norm16>=limitNoNo; }
517 // static uint8_t getCCFromYes(uint16_t norm16) {
518 // return norm16>=MIN_YES_YES_WITH_CC ? (uint8_t)norm16 : 0;
520 uint8_t getCCFromNoNo(uint16_t norm16) const {
521 const uint16_t *mapping=getMapping(norm16);
532 UChar32 mapAlgorithmic(UChar32 c, uint16_t norm16) const {
533 return c+norm16-(minMaybeYes-MAX_DELTA-1);
536 // Requires minYesNo<norm16<limitNoNo.
537 const uint16_t *getMapping(uint16_t norm16) const { return extraData+norm16; }
538 const uint16_t *getCompositionsListForDecompYes(uint16_t norm16) const {
539 if(norm16==0 || MIN_NORMAL_MAYBE_YES<=norm16) {
541 } else if(norm16<minMaybeYes) {
542 return extraData+norm16; // for yesYes; if Jamo L: harmless empty list
544 return maybeYesCompositions+norm16-minMaybeYes;
547 const uint16_t *getCompositionsListForComposite(uint16_t norm16) const {
548 const uint16_t *list=extraData+norm16; // composite has both mapping & compositions list
557 const uint16_t *getCompositionsList(uint16_t norm16) const {
558 return isDecompYes(norm16) ?
559 getCompositionsListForDecompYes(norm16) :
560 getCompositionsListForComposite(norm16);
569 UBool decompose(UChar32 c, uint16_t norm16,
577 UBool hasCompBoundaryBefore(UChar32 c, uint16_t norm16) const;
594 // Norm16 value thresholds for quick check combinations and types of extra data.
720 * For example, a 16-bit value norm16 in the range minYesNo<=norm16<minNoNo
723 * Values in the range 2<=norm16<limitNoNo are also directly indexes into the extraData
725 * Value norm16==0 means that the character is normalization-inert, that is,
756 * If there are such characters, then minMaybeYes is subtracted from their norm16 values
763 * The norm16 values of those characters are directly indexes into the extraData array.