Home | History | Annotate | Download | only in common

Lines Matching refs:norm16

216     UNormalizationCheckResult getCompQuickCheck(uint16_t norm16) const {
217 if(norm16<minNoNo || MIN_YES_YES_WITH_CC<=norm16) {
219 } else if(minMaybeYes<=norm16) {
225 UBool isCompNo(uint16_t norm16) const { return minNoNo<=norm16 && norm16<minMaybeYes; }
226 UBool isDecompYes(uint16_t norm16) const { return norm16<minYesNo || minMaybeYes<=norm16; }
228 uint8_t getCC(uint16_t norm16) const {
229 if(norm16>=MIN_NORMAL_MAYBE_YES) {
230 return (uint8_t)norm16;
232 if(norm16<minNoNo || limitNoNo<=norm16) {
235 return getCCFromNoNo(norm16);
237 static uint8_t getCCFromYesOrMaybe(uint16_t norm16) {
238 return norm16>=MIN_NORMAL_MAYBE_YES ? (uint8_t)norm16 : 0;
252 void setFCD16FromNorm16(UChar32 start, UChar32 end, uint16_t norm16,
255 void makeCanonIterDataFromNorm16(UChar32 start, UChar32 end, uint16_t norm16,
297 // Norm16 value thresholds for quick check combinations and types of extra data.
371 UBool isMaybe(uint16_t norm16) const { return minMaybeYes<=norm16 && norm16<=JAMO_VT; }
372 UBool isMaybeOrNonZeroCC(uint16_t norm16) const { return norm16>=minMaybeYes; }
373 static UBool isInert(uint16_t norm16) { return norm16==0; }
374 // static UBool isJamoL(uint16_t norm16) const { return norm16==1; }
375 static UBool isJamoVT(uint16_t norm16) { return norm16==JAMO_VT; }
376 UBool isHangul(uint16_t norm16) const { return norm16==minYesNo; }
377 UBool isCompYesAndZeroCC(uint16_t norm16) const { return norm16<minNoNo; }
378 // UBool isCompYes(uint16_t norm16) const {
379 // return norm16>=MIN_YES_YES_WITH_CC || norm16<minNoNo;
381 // UBool isCompYesOrMaybe(uint16_t norm16) const {
382 // return norm16<minNoNo || minMaybeYes<=norm16;
384 // UBool hasZeroCCFromDecompYes(uint16_t norm16) const {
385 // return norm16<=MIN_NORMAL_MAYBE_YES || norm16==JAMO_VT;
387 UBool isDecompYesAndZeroCC(uint16_t norm16) const {
388 return norm16<minYesNo ||
389 norm16==JAMO_VT ||
390 (minMaybeYes<=norm16 && norm16<=MIN_NORMAL_MAYBE_YES);
397 UBool isMostDecompYesAndZeroCC(uint16_t norm16) const {
398 return norm16<minYesNo || norm16==MIN_NORMAL_MAYBE_YES || norm16==JAMO_VT;
400 UBool isDecompNoAlgorithmic(uint16_t norm16) const { return norm16>=limitNoNo; }
404 // static uint8_t getCCFromYes(uint16_t norm16) {
405 // return norm16>=MIN_YES_YES_WITH_CC ? (uint8_t)norm16 : 0;
407 uint8_t getCCFromNoNo(uint16_t norm16) const {
408 const uint16_t *mapping=getMapping(norm16);
419 UChar32 mapAlgorithmic(UChar32 c, uint16_t norm16) const {
420 return c+norm16-(minMaybeYes-MAX_DELTA-1);
423 // Requires minYesNo<norm16<limitNoNo.
424 const uint16_t *getMapping(uint16_t norm16) const { return extraData+norm16; }
425 const uint16_t *getCompositionsListForDecompYes(uint16_t norm16) const {
426 if(norm16==0 || MIN_NORMAL_MAYBE_YES<=norm16) {
428 } else if(norm16<minMaybeYes) {
429 return extraData+norm16; // for yesYes; if Jamo L: harmless empty list
431 return maybeYesCompositions+norm16-minMaybeYes;
434 const uint16_t *getCompositionsListForComposite(uint16_t norm16) const {
435 const uint16_t *list=extraData+norm16; // composite has both mapping & compositions list
445 const uint16_t *getCompositionsList(uint16_t norm16) const {
446 return isDecompYes(norm16) ?
447 getCompositionsListForDecompYes(norm16) :
448 getCompositionsListForComposite(norm16);
457 UBool decompose(UChar32 c, uint16_t norm16,
465 UBool hasCompBoundaryBefore(UChar32 c, uint16_t norm16) const;
484 // Norm16 value thresholds for quick check combinations and types of extra data.
690 * For example, a 16-bit value norm16 in the range minYesNo<=norm16<minNoNo
693 * Values in the range 2<=norm16<limitNoNo are also directly indexes into the extraData
695 * Value norm16==0 means that the character is normalization-inert, that is,
726 * If there are such characters, then minMaybeYes is subtracted from their norm16 values
733 * The norm16 values of those characters are directly indexes into the extraData array.