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.
481 UBool isMaybe(uint16_t norm16) const { return minMaybeYes<=norm16 && norm16<=JAMO_VT; }
482 UBool isMaybeOrNonZeroCC(uint16_t norm16) const { return norm16>=minMaybeYes; }
483 static UBool isInert(uint16_t norm16) { return norm16==0; }
484 static UBool isJamoL(uint16_t norm16) { return norm16==1; }
485 static UBool isJamoVT(uint16_t norm16) { return norm16==JAMO_VT; }
486 UBool isHangul(uint16_t norm16) const { return norm16==minYesNo; }
487 UBool isCompYesAndZeroCC(uint16_t norm16) const { return norm16<minNoNo; }
488 // UBool isCompYes(uint16_t norm16) const {
489 // return norm16>=MIN_YES_YES_WITH_CC || norm16<minNoNo;
491 // UBool isCompYesOrMaybe(uint16_t norm16) const {
492 // return norm16<minNoNo || minMaybeYes<=norm16;
494 // UBool hasZeroCCFromDecompYes(uint16_t norm16) const {
495 // return norm16<=MIN_NORMAL_MAYBE_YES || norm16==JAMO_VT;
497 UBool isDecompYesAndZeroCC(uint16_t norm16) const {
498 return norm16<minYesNo ||
499 norm16==JAMO_VT ||
500 (minMaybeYes<=norm16 && norm16<=MIN_NORMAL_MAYBE_YES);
507 UBool isMostDecompYesAndZeroCC(uint16_t norm16) const {
508 return norm16<minYesNo || norm16==MIN_NORMAL_MAYBE_YES || norm16==JAMO_VT;
510 UBool isDecompNoAlgorithmic(uint16_t norm16) const { return norm16>=limitNoNo; }
514 // static uint8_t getCCFromYes(uint16_t norm16) {
515 // return norm16>=MIN_YES_YES_WITH_CC ? (uint8_t)norm16 : 0;
517 uint8_t getCCFromNoNo(uint16_t norm16) const {
518 const uint16_t *mapping=getMapping(norm16);
529 UChar32 mapAlgorithmic(UChar32 c, uint16_t norm16) const {
530 return c+norm16-(minMaybeYes-MAX_DELTA-1);
533 // Requires minYesNo<norm16<limitNoNo.
534 const uint16_t *getMapping(uint16_t norm16) const { return extraData+norm16; }
535 const uint16_t *getCompositionsListForDecompYes(uint16_t norm16) const {
536 if(norm16==0 || MIN_NORMAL_MAYBE_YES<=norm16) {
538 } else if(norm16<minMaybeYes) {
539 return extraData+norm16; // for yesYes; if Jamo L: harmless empty list
541 return maybeYesCompositions+norm16-minMaybeYes;
544 const uint16_t *getCompositionsListForComposite(uint16_t norm16) const {
545 const uint16_t *list=extraData+norm16; // composite has both mapping & compositions list
554 const uint16_t *getCompositionsList(uint16_t norm16) const {
555 return isDecompYes(norm16) ?
556 getCompositionsListForDecompYes(norm16) :
557 getCompositionsListForComposite(norm16);
566 UBool decompose(UChar32 c, uint16_t norm16,
574 UBool hasCompBoundaryBefore(UChar32 c, uint16_t norm16) const;
590 // Norm16 value thresholds for quick check combinations and types of extra data.
711 * For example, a 16-bit value norm16 in the range minYesNo<=norm16<minNoNo
714 * Values in the range 2<=norm16<limitNoNo are also directly indexes into the extraData
716 * Value norm16==0 means that the character is normalization-inert, that is,
747 * If there are such characters, then minMaybeYes is subtracted from their norm16 values
754 * The norm16 values of those characters are directly indexes into the extraData array.