Lines Matching refs:Norm
125 Norm *Normalizer2DataBuilder::checkNormForMapping(Norm *p, UChar32 c) { in checkNormForMapping()
127 if(p->mappingType!=Norm::NONE) { in checkNormForMapping()
169 Norm *p=checkNormForMapping(norms.createNorm(c), c); in setOneWayMapping()
171 p->mappingType=Norm::ONE_WAY; in setOneWayMapping()
199 Norm *p=checkNormForMapping(norms.createNorm(c), c); in setRoundTripMapping()
201 p->mappingType=Norm::ROUND_TRIP; in setRoundTripMapping()
208 Norm *p=checkNormForMapping(norms.createNorm(c), c); in removeMapping()
209 p->mappingType=Norm::REMOVED; in removeMapping()
214 Norm::MappingType mappingType) const { in mappingHasCompBoundaryAfter()
223 if(mappingType==Norm::ONE_WAY && lastStarterIndex<lastIndex && buffer.ccAt(lastIndex)>1) { in mappingHasCompBoundaryAfter()
255 const Norm *starterNorm=norms.getNorm(starter); in mappingHasCompBoundaryAfter()
302 const Norm *starterNorm=nullptr; in mappingRecomposes()
325 void Normalizer2DataBuilder::postProcess(Norm &norm) { in postProcess()
362 } else if(norm.mappingType==Norm::ROUND_TRIP) { in postProcess()
364 norm.type=Norm::YES_NO_COMBINES_FWD; in postProcess()
366 norm.type=Norm::YES_NO_MAPPING_ONLY; in postProcess()
373 norm.type=Norm::NO_NO_EMPTY; in postProcess()
375 norm.type=Norm::NO_NO_COMP_NO_MAYBE_CC; in postProcess()
377 norm.type=Norm::NO_NO_COMP_BOUNDARY_BEFORE; in postProcess()
380 norm.type=Norm::NO_NO_COMP_YES; in postProcess()
394 norm.type=Norm::MAYBE_YES_COMBINES_FWD; in postProcess()
396 norm.type=Norm::MAYBE_YES_SIMPLE; // any ccc in postProcess()
400 norm.type=Norm::YES_YES_COMBINES_FWD; in postProcess()
402 norm.type=Norm::YES_YES_WITH_CC; in postProcess()
404 norm.type=Norm::INERT; in postProcess()
413 void rangeHandler(UChar32 start, UChar32 end, Norm &norm) U_OVERRIDE { in rangeHandler()
425 …izer2DataBuilder::writeNorm16(UMutableCPTrie *norm16Trie, UChar32 start, UChar32 end, Norm &norm) { in writeNorm16()
434 case Norm::INERT: in writeNorm16()
437 case Norm::YES_YES_COMBINES_FWD: in writeNorm16()
440 case Norm::YES_NO_COMBINES_FWD: in writeNorm16()
443 case Norm::YES_NO_MAPPING_ONLY: in writeNorm16()
446 case Norm::NO_NO_COMP_YES: in writeNorm16()
449 case Norm::NO_NO_COMP_BOUNDARY_BEFORE: in writeNorm16()
452 case Norm::NO_NO_COMP_NO_MAYBE_CC: in writeNorm16()
455 case Norm::NO_NO_EMPTY: in writeNorm16()
458 case Norm::NO_NO_DELTA: in writeNorm16()
472 case Norm::MAYBE_YES_COMBINES_FWD: in writeNorm16()
475 case Norm::MAYBE_YES_SIMPLE: in writeNorm16()
478 case Norm::YES_YES_WITH_CC: in writeNorm16()
494 (Norm::YES_NO_COMBINES_FWD<=norm.type && norm.type<=Norm::NO_NO_DELTA) || in writeNorm16()
499 UBool isCompNoMaybe= norm.type>=Norm::NO_NO_COMP_YES; in writeNorm16()
936 Norm::MappingType prevType = Norm::NONE; in writeDataFile()
940 const Norm *norm; in writeDataFile()
950 Norm::MappingType type; in writeDataFile()
953 type = Norm::NONE; in writeDataFile()
956 if(type == Norm::NONE) { in writeDataFile()
965 if(writeRemoved ? prevType != Norm::NONE : prevType > Norm::REMOVED) { in writeDataFile()
1009 const Norm *norm1 = b1.norms.getNorm(c); in computeDiff()
1010 const Norm *norm2 = b2.norms.getNorm(c); in computeDiff()
1012 Norm::MappingType type1; in computeDiff()
1015 type1 = Norm::NONE; in computeDiff()
1021 Norm::MappingType type2; in computeDiff()
1024 type2 = Norm::NONE; in computeDiff()
1031 } else if(type1 == Norm::NONE) { in computeDiff()
1033 } else if(type1 == Norm::ROUND_TRIP) { in computeDiff()
1035 } else if(type1 == Norm::ONE_WAY) { in computeDiff()