/third_party/typescript/src/testRunner/unittests/ |
D | semver.ts | 37 … assert.strictEqual(new Version("1.0.0").compareTo(new Version("2.0.0")), Comparison.LessThan); 38 … assert.strictEqual(new Version("1.0.0").compareTo(new Version("1.1.0")), Comparison.LessThan); 39 … assert.strictEqual(new Version("1.0.0").compareTo(new Version("1.0.1")), Comparison.LessThan); 40 … assert.strictEqual(new Version("2.0.0").compareTo(new Version("1.0.0")), Comparison.GreaterThan); 41 … assert.strictEqual(new Version("1.1.0").compareTo(new Version("1.0.0")), Comparison.GreaterThan); 42 … assert.strictEqual(new Version("1.0.1").compareTo(new Version("1.0.0")), Comparison.GreaterThan); 43 … assert.strictEqual(new Version("1.0.0").compareTo(new Version("1.0.0")), Comparison.EqualTo); 48 …assert.strictEqual(new Version("1.0.0").compareTo(new Version("1.0.0-pre")), Comparison.GreaterTha… 49 …assert.strictEqual(new Version("1.0.1-pre").compareTo(new Version("1.0.0")), Comparison.GreaterTha… 50 … assert.strictEqual(new Version("1.0.0-pre").compareTo(new Version("1.0.0")), Comparison.LessThan); [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | implicitAnyGenericTypeInference.types | 3 compareTo<U>(x: T, y: U): U; 4 >compareTo : <U>(x: T, y: U) => U 12 c = { compareTo: (x, y) => { return y; } }; 13 >c = { compareTo: (x, y) => { return y; } } : { compareTo: <U>(x: any, y: U) => U; } 15 >{ compareTo: (x, y) => { return y; } } : { compareTo: <U>(x: any, y: U) => U; } 16 >compareTo : <U>(x: any, y: U) => U 22 var r = c.compareTo(1, ''); 24 >c.compareTo(1, '') : "" 25 >c.compareTo : <U>(x: any, y: U) => U 27 >compareTo : <U>(x: any, y: U) => U
|
D | maxConstraints.types | 3 compareTo(other: T): number; 4 >compareTo : (other: T) => number 12 var max2: Comparer = (x, y) => { return (x.compareTo(y) > 0) ? x : y }; 14 >(x, y) => { return (x.compareTo(y) > 0) ? x : y } : <T extends Comparable<T>>(x: T, y: T) => T 17 >(x.compareTo(y) > 0) ? x : y : T 18 >(x.compareTo(y) > 0) : boolean 19 >x.compareTo(y) > 0 : boolean 20 >x.compareTo(y) : number 21 >x.compareTo : (other: T) => number 23 >compareTo : (other: T) => number
|
D | implicitAnyGenericTypeInference.symbols | 6 compareTo<U>(x: T, y: U): U; 7 >compareTo : Symbol(Comparer.compareTo, Decl(implicitAnyGenericTypeInference.ts, 0, 23)) 20 c = { compareTo: (x, y) => { return y; } }; 22 >compareTo : Symbol(compareTo, Decl(implicitAnyGenericTypeInference.ts, 5, 5)) 27 var r = c.compareTo(1, ''); 29 >c.compareTo : Symbol(Comparer.compareTo, Decl(implicitAnyGenericTypeInference.ts, 0, 23)) 31 >compareTo : Symbol(Comparer.compareTo, Decl(implicitAnyGenericTypeInference.ts, 0, 23))
|
D | protoAssignment.symbols | 5 compareTo(other: number); 6 >compareTo : Symbol(Number.compareTo, Decl(protoAssignment.ts, 0, 45)) 11 Number.prototype.compareTo = function (other: number) { 12 >Number.prototype.compareTo : Symbol(Number.compareTo, Decl(protoAssignment.ts, 0, 45)) 16 >compareTo : Symbol(Number.compareTo, Decl(protoAssignment.ts, 0, 45))
|
D | maxConstraints.symbols | 6 compareTo(other: T): number; 7 >compareTo : Symbol(Comparable.compareTo, Decl(maxConstraints.ts, 0, 25)) 24 var max2: Comparer = (x, y) => { return (x.compareTo(y) > 0) ? x : y }; 29 >x.compareTo : Symbol(Comparable.compareTo, Decl(maxConstraints.ts, 0, 25)) 31 >compareTo : Symbol(Comparable.compareTo, Decl(maxConstraints.ts, 0, 25))
|
D | protoAssignment.types | 4 compareTo(other: number); 5 >compareTo : (other: number) => any 10 Number.prototype.compareTo = function (other: number) { 11 >Number.prototype.compareTo = function (other: number) { return this.valueOf() == other;} : (othe… 12 >Number.prototype.compareTo : (other: number) => any 16 >compareTo : (other: number) => any
|
D | implicitAnyGenericTypeInference.js | 3 compareTo<U>(x: T, y: U): U; 7 c = { compareTo: (x, y) => { return y; } }; method 8 var r = c.compareTo(1, ''); 12 c = { compareTo: function (x, y) { return y; } }; method 13 var r = c.compareTo(1, '');
|
D | protoAssignment.js | 4 compareTo(other: number); 8 Number.prototype.compareTo = function (other: number) { method in Number 18 Number.prototype.compareTo = function (other) { method in Number
|
D | genericAssignmentCompatWithInterfaces1.symbols | 6 compareTo(other: T): number; 7 >compareTo : Symbol(Comparable.compareTo, Decl(genericAssignmentCompatWithInterfaces1.ts, 0, 25)) 29 class A<T> implements Comparable<T> { compareTo(other: T) { return 1; } } 34 >compareTo : Symbol(A.compareTo, Decl(genericAssignmentCompatWithInterfaces1.ts, 9, 37))
|
D | maxConstraints.js | 3 compareTo(other: T): number; 8 var max2: Comparer = (x, y) => { return (x.compareTo(y) > 0) ? x : y }; 12 var max2 = function (x, y) { return (x.compareTo(y) > 0) ? x : y; };
|
D | genericAssignmentCompatWithInterfaces1.js | 3 compareTo(other: T): number; 11 class A<T> implements Comparable<T> { compareTo(other: T) { return 1; } } method in A 26 A.prototype.compareTo = function (other) { return 1; }; method in A
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | VersionInfoTest.java | 96 if (v1.compareTo(v2) == 0) { in TestCompare() 104 if (v1.compareTo(v2) == 0) { in TestCompare() 114 if (v1.compareTo(v2) != 0) { in TestCompare() 122 if (v1.compareTo(v2) != 0) { in TestCompare() 130 if (v1.compareTo(v2) >= 0) { in TestCompare() 134 if (v2.compareTo(v1) <= 0) { in TestCompare() 146 assertTrue(small + " < " + large, small.compareTo(large) < 0); in TestCompareLarge() 150 assertTrue(small + " < " + large, small.compareTo(large) < 0); in TestCompareLarge() 213 if (v1.compareTo(v2) == 0) { in TestComparable() 221 if (v1.compareTo(v2) != 0) { in TestComparable()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
D | Scale.java | 44 arbitrary.compareTo(BigDecimal.ZERO) == 0 in Scale() 59 if (arbitrary != null && BigDecimal.ZERO.compareTo(arbitrary) != 0) { in Scale() 110 if (multiplicand.compareTo(BigDecimal.ONE) == 0) { in byBigDecimal() 112 } else if (multiplicand.compareTo(BIG_DECIMAL_100) == 0) { in byBigDecimal() 114 } else if (multiplicand.compareTo(BIG_DECIMAL_1000) == 0) { in byBigDecimal()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/ |
D | Scale.java | 45 arbitrary.compareTo(BigDecimal.ZERO) == 0 in Scale() 60 if (arbitrary != null && BigDecimal.ZERO.compareTo(arbitrary) != 0) { in Scale() 108 if (multiplicand.compareTo(BigDecimal.ONE) == 0) { in byBigDecimal() 110 } else if (multiplicand.compareTo(BIG_DECIMAL_100) == 0) { in byBigDecimal() 112 } else if (multiplicand.compareTo(BIG_DECIMAL_1000) == 0) { in byBigDecimal()
|
/third_party/icu/icu4c/source/test/intltest/ |
D | mnkytst.cpp | 97 int32_t result = collationKey1.compareTo(collationKey2); // Tertiary in TestCollationKey() 98 int32_t revResult = collationKey2.compareTo(collationKey1); // Tertiary in TestCollationKey() 104 result = collationKey1.compareTo(collationKey2); // Secondary in TestCollationKey() 105 revResult = collationKey2.compareTo(collationKey1); // Secondary in TestCollationKey() 111 result = collationKey1.compareTo(collationKey2); // Primary in TestCollationKey() 112 revResult = collationKey2.compareTo(collationKey1); // Primary in TestCollationKey() 121 result = collationKey1.compareTo(collationKey2); in TestCollationKey() 133 result = collationKey2.compareTo(collationKey1); in TestCollationKey()
|
/third_party/typescript/tests/cases/compiler/ |
D | implicitAnyGenericTypeInference.ts | 4 compareTo<U>(x: T, y: U): U; method 8 c = { compareTo: (x, y) => { return y; } }; 9 var r = c.compareTo(1, '');
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/ |
D | VersionInfoTest.java | 99 if (v1.compareTo(v2) == 0) { in TestCompare() 107 if (v1.compareTo(v2) == 0) { in TestCompare() 117 if (v1.compareTo(v2) != 0) { in TestCompare() 125 if (v1.compareTo(v2) != 0) { in TestCompare() 133 if (v1.compareTo(v2) >= 0) { in TestCompare() 137 if (v2.compareTo(v1) <= 0) { in TestCompare() 204 if (v1.compareTo(v2) == 0) { in TestComparable() 212 if (v1.compareTo(v2) != 0) { in TestComparable()
|
/third_party/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
D | CollationFrozenMonkeyTest.java | 82 int result = collationKey1.compareTo(collationKey2); // Tertiary in TestCollationKey() 83 int revResult = collationKey2.compareTo(collationKey1); // Tertiary in TestCollationKey() 88 result = collationKey1.compareTo(collationKey2); // Secondary in TestCollationKey() 89 revResult = collationKey2.compareTo(collationKey1); // Secondary in TestCollationKey() 94 result = collationKey1.compareTo(collationKey2); // Primary in TestCollationKey() 95 revResult = collationKey2.compareTo(collationKey1); // Primary in TestCollationKey() 103 result = collationKey1.compareTo(collationKey2); in TestCollationKey() 114 result = collationKey2.compareTo(collationKey1); in TestCollationKey() 272 int keyResult = sortKey1.compareTo(sortKey2); in doTest()
|
D | CollationMonkeyTest.java | 68 int result = collationKey1.compareTo(collationKey2); // Tertiary in TestCollationKey() 69 int revResult = collationKey2.compareTo(collationKey1); // Tertiary in TestCollationKey() 75 result = collationKey1.compareTo(collationKey2); // Secondary in TestCollationKey() 76 revResult = collationKey2.compareTo(collationKey1); // Secondary in TestCollationKey() 82 result = collationKey1.compareTo(collationKey2); // Primary in TestCollationKey() 83 revResult = collationKey2.compareTo(collationKey1); // Primary in TestCollationKey() 91 result = collationKey1.compareTo(collationKey2); in TestCollationKey() 102 result = collationKey2.compareTo(collationKey1); in TestCollationKey() 247 int keyResult = sortKey1.compareTo(sortKey2); in doTest()
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/collator/ |
D | CollationMonkeyTest.java | 71 int result = collationKey1.compareTo(collationKey2); // Tertiary in TestCollationKey() 72 int revResult = collationKey2.compareTo(collationKey1); // Tertiary in TestCollationKey() 78 result = collationKey1.compareTo(collationKey2); // Secondary in TestCollationKey() 79 revResult = collationKey2.compareTo(collationKey1); // Secondary in TestCollationKey() 85 result = collationKey1.compareTo(collationKey2); // Primary in TestCollationKey() 86 revResult = collationKey2.compareTo(collationKey1); // Primary in TestCollationKey() 94 result = collationKey1.compareTo(collationKey2); in TestCollationKey() 105 result = collationKey2.compareTo(collationKey1); in TestCollationKey() 250 int keyResult = sortKey1.compareTo(sortKey2); in doTest()
|
D | CollationFrozenMonkeyTest.java | 85 int result = collationKey1.compareTo(collationKey2); // Tertiary in TestCollationKey() 86 int revResult = collationKey2.compareTo(collationKey1); // Tertiary in TestCollationKey() 91 result = collationKey1.compareTo(collationKey2); // Secondary in TestCollationKey() 92 revResult = collationKey2.compareTo(collationKey1); // Secondary in TestCollationKey() 97 result = collationKey1.compareTo(collationKey2); // Primary in TestCollationKey() 98 revResult = collationKey2.compareTo(collationKey1); // Primary in TestCollationKey() 106 result = collationKey1.compareTo(collationKey2); in TestCollationKey() 117 result = collationKey2.compareTo(collationKey1); in TestCollationKey() 275 int keyResult = sortKey1.compareTo(sortKey2); in doTest()
|
/third_party/icu/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/ |
D | APIInfo.java | 340 int result = lhi.pack.compareTo(rhi.pack); in defaultComparator() 343 … .compareTo(rhi.getVal(CAT) == CAT_CLASS || rhi.getVal(CAT) == CAT_ENUM ? rhi.name : rhi.cls); in defaultComparator() 347 result = lhi.name.compareTo(rhi.name); in defaultComparator() 349 result = lhi.sig.compareTo(rhi.sig); in defaultComparator() 372 int result = lhi.pack.compareTo(rhi.pack); in changedComparator() 375 .compareTo(rhi.getVal(CAT) == CAT_CLASS ? rhi.name : rhi.cls); in changedComparator() 379 result = lhi.name.compareTo(rhi.name); in changedComparator() 383 result = lhi.sig.compareTo(rhi.sig); in changedComparator() 405 int result = lhi.pack.compareTo(rhi.pack); in classFirstComparator() 411 result = (lcls ? lhi.name : lhi.cls).compareTo( in classFirstComparator() [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/coll/ |
D | FCDIterCollationIterator.java | 42 if(state.compareTo(State.ITER_CHECK_BWD) <= 0) { in getOffset() 86 } else if(state.compareTo(State.IN_NORM_ITER_AT_LIMIT) >= 0 && in nextCodePoint() 140 } else if(state.compareTo(State.IN_NORM_ITER_AT_LIMIT) >= 0 && pos != 0) { in previousCodePoint() 176 } else if(state.compareTo(State.IN_NORM_ITER_AT_LIMIT) >= 0 && in handleNextCE32() 189 if(state.compareTo(State.ITER_IN_FCD_SEGMENT) <= 0) { in handleGetTrailSurrogate() 229 (state.compareTo(State.IN_NORM_ITER_AT_LIMIT) >= 0 && pos == normalized.length())); in switchToForward() 318 (state.compareTo(State.IN_NORM_ITER_AT_LIMIT) >= 0 && pos == 0)); in switchToBackward()
|
/third_party/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
D | FCDIterCollationIterator.java | 40 if(state.compareTo(State.ITER_CHECK_BWD) <= 0) { in getOffset() 84 } else if(state.compareTo(State.IN_NORM_ITER_AT_LIMIT) >= 0 && in nextCodePoint() 138 } else if(state.compareTo(State.IN_NORM_ITER_AT_LIMIT) >= 0 && pos != 0) { in previousCodePoint() 174 } else if(state.compareTo(State.IN_NORM_ITER_AT_LIMIT) >= 0 && in handleNextCE32() 187 if(state.compareTo(State.ITER_IN_FCD_SEGMENT) <= 0) { in handleGetTrailSurrogate() 227 (state.compareTo(State.IN_NORM_ITER_AT_LIMIT) >= 0 && pos == normalized.length())); in switchToForward() 316 (state.compareTo(State.IN_NORM_ITER_AT_LIMIT) >= 0 && pos == 0)); in switchToBackward()
|