Home
last modified time | relevance | path

Searched refs:comparer (Results 1 – 25 of 40) sorted by relevance

12

/third_party/icu/tools/colprobe/
Dstrengthprobe.cpp29 StrengthProbe::StrengthProbe(CompareFn comparer, GetSortKeyFn getter, UChar SE, in StrengthProbe() argument
35 comparer(comparer), skgetter(getter) in StrengthProbe()
56 if((sanityRes = comparer(&utilFirstP, &utilSecondP)) >= 0) { in checkSanity()
60 if((sanityRes = comparer(&utilFirstP, &utilSecondP)) >= 0) { in checkSanity()
64 if((sanityRes = comparer(&utilFirstP, &utilSecondP)) >= 0) { in checkSanity()
69 if((sanityRes = comparer(&utilFirstP, &utilSecondP)) >= 0) { in checkSanity()
73 if((sanityRes = comparer(&utilFirstP, &utilSecondP)) >= 0) { in checkSanity()
77 if((sanityRes = comparer(&utilFirstP, &utilSecondP)) >= 0) { in checkSanity()
113 if(comparer(&utilFirstP, &utilSecondP) < 0) { in probePrefix()
133 if(comparer(&utilFirstP, &utilSecondP) < 0) { in probeSuffix()
[all …]
Dcolprobe.cpp156 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()
[all …]
Dtargetsetgenerator.cpp5 TargetSetGenerator::TargetSetGenerator(UnicodeSet &startingSet, CompareFn comparer) : in TargetSetGenerator() argument
6 comparer(comparer), in TargetSetGenerator()
Dtargetsetgenerator.h11 TargetSetGenerator(UnicodeSet &startingSet, CompareFn comparer);
13 CompareFn comparer;
Dstrengthprobe.h57 CompareFn comparer;
61 …StrengthProbe(CompareFn comparer, GetSortKeyFn getter, UChar SE = 0x0030, UChar B0 = 0x0061, UChar…
DcolprobeNew.cpp288 CompareFn comparer; member
671 gComparer = platforms[gPlatformIndexes[0]].comparer; in processCollator()
673 …StrengthProbe probe(platforms[gPlatformIndexes[0]].comparer, platforms[gPlatformIndexes[0]].skgett… in processCollator()
724 StrengthProbe RefProbe(platforms[gRefNum].comparer, platforms[gRefNum].skgetter); in processCollator()
738 StrengthProbe RefProbe(platforms[gRefNum].comparer, platforms[gRefNum].skgetter); in processCollator()
/third_party/typescript/tests/baselines/reference/
DgenericConstraint2.errors.txt2 …Property 'comparer' is missing in type 'ComparableString' but required in type 'Comparable<string>…
4 …Property 'comparer' is missing in type 'ComparableString' but required in type 'Comparable<Compara…
9 comparer(other: T): number;
15 return x.comparer(y);
21 !!! error TS2420: Property 'comparer' is missing in type 'ComparableString' but required in type …
22 !!! related TS2728 tests/cases/compiler/genericConstraint2.ts:2:5: 'comparer' is declared here.
35 !!! error TS2344: Property 'comparer' is missing in type 'ComparableString' but required in type …
36 !!! related TS2728 tests/cases/compiler/genericConstraint2.ts:2:5: 'comparer' is declared here.
DgenericConstraint2.symbols6 comparer(other: T): number;
7 >comparer : Symbol(Comparable.comparer, Decl(genericConstraint2.ts, 0, 25))
29 return x.comparer(y);
30 >x.comparer : Symbol(Comparable.comparer, Decl(genericConstraint2.ts, 0, 25))
32 >comparer : Symbol(Comparable.comparer, Decl(genericConstraint2.ts, 0, 25))
DgenericConstraint2.types3 comparer(other: T): number;
4 >comparer : (other: T) => number
31 return x.comparer(y);
32 >x.comparer(y) : number
33 >x.comparer : (other: T) => number
35 >comparer : (other: T) => number
DgenericConstraint2.js3 comparer(other: T): number;
9 return x.comparer(y);
30 return x.comparer(y);
/third_party/protobuf/csharp/src/Google.Protobuf.Test/Collections/
DProtobufEqualityComparersTest.cs100 …private static void ValidateEqualityComparer<T>(EqualityComparer<T> comparer, IEnumerable<T> value… in ValidateEqualityComparer() argument
110 Assert.IsTrue(comparer.Equals(array[i], array[j]), in ValidateEqualityComparer()
115 Assert.IsFalse(comparer.Equals(array[i], array[j]), in ValidateEqualityComparer()
117 … Assert.AreNotEqual(comparer.GetHashCode(array[i]), comparer.GetHashCode(array[j]), in ValidateEqualityComparer()
/third_party/typescript/src/harness/
DcollectionsImpl.ts3 comparer: (a: T, b: T) => number; property
15 … constructor(comparer: ((a: K, b: K) => number) | SortOptions<K>, iterable?: Iterable<[K, V]>) {
16 this._comparer = typeof comparer === "object" ? comparer.comparer : comparer;
17 … this._order = typeof comparer === "object" && comparer.sort === "insertion" ? [] : undefined;
36 public get comparer() { method in collections.SortedMap
DcompilerImpl.ts69 …= this.js = new collections.SortedMap<string, documents.TextDocument>({ comparer: this.vfs.stringC…
70 … this.dts = new collections.SortedMap<string, documents.TextDocument>({ comparer: this.vfs.stringC…
71 …this.maps = new collections.SortedMap<string, documents.TextDocument>({ comparer: this.vfs.stringC…
85 …putsAndOutputs = new collections.SortedMap<string, CompilationOutput>({ comparer: this.vfs.stringC…
/third_party/icu/icu4c/source/common/
Duvector.cpp37 comparer(0) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
47 comparer(0) in UVector()
57 comparer(c) in UVector()
67 comparer(c) in UVector()
116 if (comparer != NULL) { in operator ==()
119 if (!(*comparer)(elements[i], other.elements[i])) { in operator ==()
271 if (comparer == 0) { in equals()
281 if (!(*comparer)(key, elements[i])) { in equals()
306 if (comparer != 0) { in indexOf()
308 if ((*comparer)(key, elements[i])) { in indexOf()
[all …]
/third_party/skia/third_party/externals/icu/source/common/
Duvector.cpp37 comparer(0) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
47 comparer(0) in UVector()
57 comparer(c) in UVector()
67 comparer(c) in UVector()
116 if (comparer != NULL) { in operator ==()
119 if (!(*comparer)(elements[i], other.elements[i])) { in operator ==()
271 if (comparer == 0) { in equals()
281 if (!(*comparer)(key, elements[i])) { in equals()
306 if (comparer != 0) { in indexOf()
308 if ((*comparer)(key, elements[i])) { in indexOf()
[all …]
/third_party/flutter/skia/third_party/externals/icu/source/common/
Duvector.cpp37 comparer(0) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
47 comparer(0) in UVector()
57 comparer(c) in UVector()
67 comparer(c) in UVector()
116 if (comparer != NULL) { in operator ==()
119 if (!(*comparer)(elements[i], other.elements[i])) { in operator ==()
271 if (comparer == 0) { in equals()
281 if (!(*comparer)(key, elements[i])) { in equals()
306 if (comparer != 0) { in indexOf()
308 if ((*comparer)(key, elements[i])) { in indexOf()
[all …]
/third_party/node/deps/icu-small/source/common/
Duvector.cpp46 comparer(c) in UVector()
89 U_ASSERT(comparer != nullptr); in operator ==()
91 if (comparer != nullptr) { in operator ==()
94 if (!(*comparer)(elements[i], other.elements[i])) { in operator ==()
276 if (comparer == nullptr) { in equals()
286 if (!(*comparer)(key, elements[i])) { in equals()
309 if (comparer != nullptr) { in indexOf()
311 if ((*comparer)(key, elements[i])) { in indexOf()
443 UElementsAreEqual *old = comparer; in setComparer()
444 comparer = d; in setComparer()
Duvector.h91 UElementsAreEqual *comparer = nullptr; variable
/third_party/typescript/src/compiler/
Dcore.ts748 …eRelational<T>(array: readonly T[], equalityComparer: EqualityComparer<T>, comparer: Comparer<T>) {
752 stableSortIndices(array, indices, comparer);
784 …uplicate<T>(array: readonly T[], equalityComparer: EqualityComparer<T>, comparer?: Comparer<T>): T…
787 comparer ? deduplicateRelational(array, equalityComparer, comparer) :
794 …function deduplicateSorted<T>(array: SortedReadonlyArray<T>, comparer: EqualityComparer<T> | Compa…
801 switch (comparer(next, last)) {
834 …export function sortAndDeduplicate<T>(array: readonly T[], comparer: Comparer<T>, equalityComparer…
835 …export function sortAndDeduplicate<T>(array: readonly T[], comparer?: Comparer<T>, equalityCompare…
836 …return deduplicateSorted(sort(array, comparer), equalityComparer || comparer || compareStringsCase…
839 export function arrayIsSorted<T>(array: readonly T[], comparer: Comparer<T>) {
[all …]
/third_party/typescript/tests/cases/compiler/
DgenericConstraint2.ts2 comparer(other: T): number; method
8 return x.comparer(y);
/third_party/protobuf/csharp/src/Google.Protobuf/Collections/
DLists.cs61 IEqualityComparer<T> comparer = EqualityComparer<T>.Default; in Equals()
64 if (!comparer.Equals(left[i], right[i])) in Equals()
DRepeatedField.cs541 EqualityComparer<T> comparer = EqualityComparer; in Equals()
544 if (!comparer.Equals(array[i], other.array[i])) in Equals()
561 EqualityComparer<T> comparer = EqualityComparer; in IndexOf()
564 if (comparer.Equals(array[i], item)) in IndexOf()
/third_party/mesa3d/src/gallium/tools/trace/
Ddiff_state.py187 self.comparer = Comparer(ignore_added = ignore_added)
190 if self.comparer.visit(a, b):
200 if not self.comparer.ignore_added:
209 if not self.comparer.visit(ae, be):
232 if self.comparer.visit(ae, be):
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/collator/
DUCAConformanceTest.java46comparer = new UTF16.StringComparator(true, false, UTF16.StringComparator.FOLD_CASE_DEFAULT); in init()
51 private UTF16.StringComparator comparer; field in UCAConformanceTest
250 res = comparer.compare(oldB, buffer); in conformanceTest()
/third_party/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DUCAConformanceTest.java43comparer = new UTF16.StringComparator(true, false, UTF16.StringComparator.FOLD_CASE_DEFAULT); in init()
48 private UTF16.StringComparator comparer; field in UCAConformanceTest
247 res = comparer.compare(oldB, buffer); in conformanceTest()

12