Lines Matching refs:comparer
156 CompareFn comparer; member
368 UBool trySwamped(Line **smaller, Line **greater, UChar chars[2], CompareFn comparer) { in trySwamped() argument
381 if(comparer(&gSource, &gTarget) > 0) { in trySwamped()
388 UBool trySwamps(Line **smaller, Line **greater, UChar chars[2], CompareFn comparer) { in trySwamps() argument
399 if(comparer(&gSource, &gTarget) < 0) { in trySwamps()
407 probeStrength(Line** prevLine, Line **currLine, CompareFn comparer) { in probeStrength() argument
451 if((result = comparer(prevLine, currLine)) == 0) { in probeStrength()
456 } else if(trySwamps(prevLine, currLine, primSwamps[i], comparer)) { in probeStrength()
458 } else if(trySwamps(prevLine, currLine, secSwamps[i], comparer)) { in probeStrength()
460 } else if(trySwamped(prevLine, currLine, terSwamped[i], comparer)) { in probeStrength()
472 analyzeStrength(Line **lines, int32_t size, CompareFn comparer) { in analyzeStrength() argument
478 (*currLine)->strength = probeStrength(prevLine, currLine, comparer); in analyzeStrength()
582 noteExpansion(Line **gLines, Line *line, int32_t size, CompareFn comparer) { in noteExpansion() argument
608 if(comparer(&l, &line) > 0) { in noteExpansion()
626 positionExpansions(Line **gLines, int32_t size, CompareFn comparer) { in positionExpansions() argument
633 qsort(sortedExpansions, sortedExpansionsSize, sizeof(Line *), comparer); in positionExpansions()
655 toMove->strength = probeStrength(&prevL, &toMove, comparer); in positionExpansions()
671 if(comparer(&l, &line) > 0) { in positionExpansions()
674 toMove->next->strength = probeStrength(&(toMove->previous), &(toMove->next), comparer); in positionExpansions()
690 toMove->strength = probeStrength(&prevL, &toMove, comparer); in positionExpansions()
691 toMove->next->strength = probeStrength(&toMove, &l, comparer); in positionExpansions()
797 analyzeContractions(Line** lines, int32_t size, CompareFn comparer) { in analyzeContractions() argument
809 strength = probeStrength(prevLine, currLine, comparer); in analyzeContractions()
832 (strength = probeStrength(prevLine, (backupLine = lines+j), comparer)) == UCOL_OFF) { in analyzeContractions()
843 strength = probeStrength(lines+j, currLine, comparer); in analyzeContractions()
858 (strength = probeStrength((backupLine = lines+j), currLine, comparer)) == UCOL_OFF) { in analyzeContractions()
869 strength = probeStrength(prevLine, lines+j, comparer); in analyzeContractions()
894 detectContractions(Line **gLines, Line *lines, int32_t size, CompareFn comparer) { in detectContractions() argument
913 if((noContractions += analyzeContractions(gLines, size, comparer)) && gDebug) { in detectContractions()
919 qsort(gLinesBackup, size, sizeof(Line *), comparer); in detectContractions()
921 analyzeStrength(gLinesBackup, size, comparer); in detectContractions()
941 detectExpansions(Line **gLines, int32_t size, CompareFn comparer) { in detectExpansions() argument
968 if((startStrength = probeStrength((gLines+k), &startP, comparer)) != UCOL_OFF) { in detectExpansions()
972 if((endStrength = probeStrength(&endP, (gLines+k), comparer)) != UCOL_OFF) { in detectExpansions()
987 if((strength = probeStrength(&srcP, (gLines+k), comparer)) == UCOL_OFF) { in detectExpansions()
988 strength = probeStrength((gLines+k), &srcP, comparer); in detectExpansions()
1069 qsort(sorter, newSize, sizeof(Line*), comparer); in detectExpansions()
1070 analyzeStrength(sorter, newSize, comparer); in detectExpansions()
1093 result = comparer(&prev, &next); in detectExpansions()
1185 constructAndAnalyze(Line **gLines, Line *lines, int32_t size, CompareFn comparer) { in constructAndAnalyze() argument
1193 qsort(gLines, size, sizeof(Line *), comparer); in constructAndAnalyze()
1198 analyzeStrength(gLines, size, comparer); in constructAndAnalyze()
1211 noContractions = detectContractions(gLines, lines, size, comparer); in constructAndAnalyze()
1219 qsort(gLines, size, sizeof(Line *), comparer); in constructAndAnalyze()
1220 analyzeStrength(gLines, size, comparer); in constructAndAnalyze()
1225 int32_t noExpansions = detectExpansions(gLines, size, comparer); in constructAndAnalyze()
1230 positionExpansions(gLines, size, comparer); in constructAndAnalyze()
1332 void removeIgnorableChars(UnicodeSet &exemplarUSet, CompareFn comparer, UErrorCode &status) { in removeIgnorableChars() argument
1347 strength = probeStrength(&emptyP, &currLine, comparer); in removeIgnorableChars()
1358 strength = probeStrength(&emptyP, &currLine, comparer); in removeIgnorableChars()
1427 prepareStartingSet(UnicodeSet &exemplarUSet, CompareFn comparer, UErrorCode &status) { in prepareStartingSet() argument
1476 removeIgnorableChars(exemplarUSet, comparer, status); in prepareStartingSet()
1537 gComparer = platforms[gPlatformIndexes[i]].comparer; in processCollator()