/third_party/typescript/tests/cases/fourslash/ |
D | jsdocDeprecated_suggestion1.ts | 81 const ranges = test.ranges(); constant 87 "range": ranges[0] 93 "range": ranges[1] 99 "range": ranges[2] 105 "range": ranges[3] 111 "range": ranges[4] 117 "range": ranges[5] 123 "range": ranges[6] 129 "range": ranges[7] 135 "range": ranges[8] [all …]
|
D | referencesForOverrides.ts | 78 const ranges = test.rangesByText(); constant 80 const fooRanges = ranges.get("foo"); 83 { definition: "(method) SimpleClassTest.Foo.foo(): void", ranges: [foo0] }, 84 { definition: "(method) SimpleClassTest.Bar.foo(): void", ranges: [foo1, foo2] }, 87 const ifooRanges = ranges.get("ifoo"); 90 { definition: "(method) SimpleInterfaceTest.IFoo.ifoo(): void", ranges: [ifoo0] }, 91 { definition: "(method) SimpleInterfaceTest.IBar.ifoo(): void", ranges: [ifoo1, ifoo2] } 94 const icfooRanges = ranges.get("icfoo"); 97 { definition: "(method) SimpleClassInterfaceTest.IFoo.icfoo(): void", ranges: [icfoo0] }, 98 { definition: "(method) SimpleClassInterfaceTest.Bar.icfoo(): void", ranges: [icfoo1, icfoo2] } [all …]
|
D | referencesForStatementKeywords.ts | 199 ] = test.ranges(); 203 …EqualsDecl1_importKeyword, [{ definition: "import A = require(\"./a\")", ranges: [importEqualsDecl… 204 verify.referenceGroups(importEqualsDecl1_requireKeyword, [{ definition: "module \"/a\"", ranges: [i… 207 …cl2_importKeyword, [{ definition: "(alias) namespace N2\nimport N2 = N", ranges: [importEqualsDecl… 211 { definition: "(alias) class B\nimport B", ranges: [importDecl1_name] }, 212 { definition: "class B", ranges: [classDecl1_name] } 214 verify.referenceGroups(importDecl1_fromKeyword, [{ definition: "module \"/b\"", ranges: [importDecl… 217 …ortDecl2_typeKeyword, importDecl2_asKeyword], [{ definition: "import C", ranges: [importDecl2_name… 218 verify.referenceGroups([importDecl2_fromKeyword], [{ definition: "module \"/c\"", ranges: [importDe… 222 { definition: "(alias) class D\nimport D", ranges: [importDecl3_name] }, [all …]
|
D | completionsWithStringReplacementMode1.ts | 27 { name: "login.title", replacementSpan: test.ranges()[0] }, 28 { name: "login.description", replacementSpan: test.ranges()[0] }, 29 { name: "login.sendEmailAgree", replacementSpan: test.ranges()[0] }, 30 { name: "login.termsOfUse", replacementSpan: test.ranges()[0] }, 31 { name: "login.privacyPolicy", replacementSpan: test.ranges()[0] }, 32 { name: "login.sendEmailButton", replacementSpan: test.ranges()[0] }, 33 { name: "login.emailInputPlaceholder", replacementSpan: test.ranges()[0] }, 34 { name: "login.errorWrongEmailTitle", replacementSpan: test.ranges()[0] }, 35 { name: "login.errorWrongEmailDescription", replacementSpan: test.ranges()[0] }, 36 { name: "login.errorGeneralEmailTitle", replacementSpan: test.ranges()[0] }, [all …]
|
D | findAllRefsInheritedProperties3.ts | 20 const [r0Def, r0, r1Def, r1, r2Def, r2, r3Def, r3, r4Def, r4, r5Def, r5, r6, r7] = test.ranges(); 22 { definition: "(method) class1.doStuff(): void", ranges: [r0] }, 23 { definition: "(method) class2.doStuff(): void", ranges: [r4, r6] }, 26 { definition: "(property) class1.propName: string", ranges: [r1] }, 27 { definition: "(property) class2.propName: string", ranges: [r5, r7] }, 30 { definition: "(method) interface1.doStuff(): void", ranges: [r2] }, 31 { definition: "(method) class2.doStuff(): void", ranges: [r4, r6] }, 34 { definition: "(property) interface1.propName: string", ranges: [r3] }, 35 { definition: "(property) class2.propName: string", ranges: [r5, r7] }, 38 { definition: "(method) class1.doStuff(): void", ranges: [r0] }, [all …]
|
D | completionsStringsWithTriggerCharacter.ts | 25 { name: "a/b", replacementSpan: test.ranges()[0] }, 26 { name: "b/a", replacementSpan: test.ranges()[0] } 29 { name: "a@b", replacementSpan: test.ranges()[1] }, 30 { name: "b@a", replacementSpan: test.ranges()[1] } 33 { name: "a.b", replacementSpan: test.ranges()[2] }, 34 { name: "b.a", replacementSpan: test.ranges()[2] } 37 { name: "a'b", replacementSpan: test.ranges()[3] }, 38 { name: "b'a", replacementSpan: test.ranges()[3] } 41 { name: "a`b", replacementSpan: test.ranges()[4] }, 42 { name: "b`a", replacementSpan: test.ranges()[4] } [all …]
|
D | jsdocDeprecated_suggestion3.ts | 56 const ranges = test.ranges(); constant 61 range: ranges[0], 67 range: ranges[1], 73 range: ranges[2], 79 range: ranges[3], 85 range: ranges[4], 91 range: ranges[5], 97 range: ranges[6], 103 range: ranges[7], 109 range: ranges[8], [all …]
|
D | referencesForDeclarationKeywords.ts | 71 ] = test.ranges(); 72 verify.referenceGroups(classDecl1_classKeyword, [{ definition: "class C1", ranges: [classDecl1_name… 73 verify.referenceGroups(classDecl1_extendsKeyword, [{ definition: "class Base", ranges: [baseDecl_na… 74 …s(classDecl1_implementsKeyword, [{ definition: "interface Implemented1", ranges: [implemented1Decl… 76 …verify.referenceGroups(keyword, [{ definition: "(property) C1.e: number", ranges: [getDecl_name, s… 78 verify.referenceGroups(interfaceDecl1_interfaceKeyword, [{ definition: "interface I1", ranges: [int… 79 verify.referenceGroups(interfaceDecl1_extendsKeyword, [{ definition: "class Base", ranges: [baseDec… 80 verify.referenceGroups(typeDecl_typeKeyword, [{ definition: "type T = {}", ranges: [typeDecl_name] … 81 verify.referenceGroups(enumDecl_enumKeyword, [{ definition: "enum E", ranges: [enumDecl_name] }]); 82 verify.referenceGroups(namespaceDecl_namespaceKeyword, [{ definition: "namespace N", ranges: [names… [all …]
|
D | jsdocDeprecated_suggestion2.ts | 69 const ranges = test.ranges(); constant 74 range: ranges[0], 80 range: ranges[1], 86 range: ranges[2], 92 range: ranges[3], 98 range: ranges[4], 104 range: ranges[5], 110 range: ranges[6], 116 range: ranges[7], 122 range: ranges[8], [all …]
|
D | findAllRefsParameterPropertyDeclaration_inheritance.ts | 14 const [r0Def, r0, r1, r2Def, r2, r3] = test.ranges(); 16 { definition: "(property) C.x: string", ranges: [r0] }, 17 { definition: "(parameter) x: string", ranges: [r1] }, 18 { definition: "(property) D.x: string", ranges: [r2, r3] }, 21 { definition: "(property) C.x: string", ranges: [r0] }, 22 { definition: "(parameter) x: string", ranges: [r1] }, 25 { definition: "(property) C.x: string", ranges: [r0, r1] }, 26 { definition: "(property) D.x: string", ranges: [r2] }, 27 { definition: "(parameter) x: string", ranges: [r3] }, 30 { definition: "(property) D.x: string", ranges: [r2] }, [all …]
|
/third_party/rust/crates/regex/regex-syntax/src/hir/ |
D | interval.rs | 37 ranges: Vec<I>, field 47 let mut set = IntervalSet { ranges: intervals.into_iter().collect() }; in new() 56 self.ranges.push(interval); in push() 64 IntervalSetIter(self.ranges.iter()) in iter() 71 &self.ranges in intervals() 82 let len = self.ranges.len(); in case_fold_simple() 84 let range = self.ranges[i]; in case_fold_simple() 85 if let Err(err) = range.case_fold_simple(&mut self.ranges) { in case_fold_simple() 97 self.ranges.extend(&other.ranges); in union() 103 if self.ranges.is_empty() { in intersect() [all …]
|
/third_party/libphonenumber/metadata/src/test/java/com/google/i18n/phonenumbers/metadata/ |
D | PrefixTreeTest.java | 40 RangeTree ranges = ranges("1xxxxxx", "5xxxxxx", "6xxxxxx"); in testRetainFrom() local 41 assertThat(prefix.retainFrom(ranges)).containsExactly("12[346]xxxx", "555xxxx"); in testRetainFrom() 66 RangeTree ranges = ranges("12x", "3xx", "456"); in testEmptyVsZeroLength() local 67 assertThat(empty.retainFrom(ranges)).isEqualTo(empty()); in testEmptyVsZeroLength() 68 assertThat(zeroLength.retainFrom(ranges)).isEqualTo(ranges); in testEmptyVsZeroLength() 79 RangeTree ranges = ranges("xxxx"); in testRangeAndPrefixSameLength() local 80 assertThat(prefix.retainFrom(ranges)).containsExactly("1234"); in testRangeAndPrefixSameLength() 86 RangeTree ranges = ranges("xxx"); in testRangeShorterThanPrefix() local 87 assertThat(prefix.retainFrom(ranges)).isEmpty(); in testRangeShorterThanPrefix() 93 RangeTree ranges = ranges("x", "xx", "xxx", "1234xx", "234xxx", "3xx8xx", "67890"); in testComplex() local [all …]
|
D | RangeTreeTest.java | 132 RangeTree a = ranges("12xx", "456xx"); in testUnion() 137 RangeTree b = ranges("1234", "4xxxx", "999"); in testUnion() 144 RangeTree a = ranges("12xx", "456xx"); in testIntersection() 149 RangeTree b = ranges("1234", "4xxxx", "999"); in testIntersection() 156 RangeTree a = ranges("12xx", "456xx"); in testSubtraction() 161 RangeTree b = ranges("1234", "4xxxx", "999"); in testSubtraction() 168 RangeTree a = ranges("12[3-6]xx", "13[5-8]xx", "456xxxx"); in testContainsAll() 173 assertThat(a.containsAll(ranges("1[23][56][78]x", "4567890"))).isTrue(); in testContainsAll() 176 assertThat(a.containsAll(ranges("12[357]xx"))).isFalse(); in testContainsAll() 178 assertThat(a.containsAll(ranges("123456"))).isFalse(); in testContainsAll() [all …]
|
D | RangeTreeFactorizerTest.java | 41 RangeTree t = ranges("123x", "123xx", "123xxx"); in testSimplePrefix() 48 RangeTree t = ranges("123xxx", "124xx", "125x"); in testDisjointBranchesNotFactored() 55 RangeTree t = ranges("123xxx", "1234x", "1234", "123"); in testOverlappingBranchesAreFactored() 57 .containsExactly(ranges("123xxx", "123"), ranges("1234x", "1234")) in testOverlappingBranchesAreFactored() 60 .containsExactly(ranges("123xxx", "123"), ranges("1234x", "1234")) in testOverlappingBranchesAreFactored() 72 RangeTree splittable = ranges("12[3-5]xx", "12[3-9]x"); in testStrategyDifference() 74 .containsExactly(ranges("12[3-5]xx"), ranges("12[3-9]x")) in testStrategyDifference() 77 .containsExactly(ranges("12[3-5]xx", "12[3-9]x")); in testStrategyDifference() 82 RangeTree unsplittable = ranges("12[3-5]xx", "12[4-9]x"); in testStrategyDifference() 84 .containsExactly(ranges("12[3-5]xx"), ranges("12[4-9]x")) in testStrategyDifference() [all …]
|
/third_party/libphonenumber/metadata/src/test/java/com/google/i18n/phonenumbers/metadata/table/ |
D | RangeTableTest.java | 82 table.assign(TYPE, MOBILE, ranges("1[234]xxxx"), OverwriteMode.ALWAYS); in testBasicAssign() 83 assertThat(table.getRanges(TYPE, MOBILE)).isEqualTo(ranges("1[234]xxxx")); in testBasicAssign() 85 table.assign(TYPE, null, ranges("13xxxx"), OverwriteMode.ALWAYS); in testBasicAssign() 86 assertThat(table.getRanges(TYPE, MOBILE)).isEqualTo(ranges("1[24]xxxx")); in testBasicAssign() 91 table.assign(fixedLine, ranges("14xxxx"), OverwriteMode.ALWAYS); in testBasicAssign() 92 assertThat(table.getRanges(TYPE, MOBILE)).isEqualTo(ranges("12xxxx")); in testBasicAssign() 93 assertThat(table.getRanges(TYPE, FIXED_LINE)).isEqualTo(ranges("14xxxx")); in testBasicAssign() 96 table.assign(fixedLine, ranges("1[34]xxxx"), OverwriteMode.SAME); in testBasicAssign() 97 assertThat(table.getRanges(TYPE, MOBILE)).isEqualTo(ranges("12xxxx")); in testBasicAssign() 98 assertThat(table.getRanges(TYPE, FIXED_LINE)).isEqualTo(ranges("1[34]xxxx")); in testBasicAssign() [all …]
|
/third_party/gn/src/gn/ |
D | substitution_pattern_unittest.cc | 16 ASSERT_EQ(1u, pattern.ranges().size()); in TEST() 17 EXPECT_EQ(&SubstitutionLiteral, pattern.ranges()[0].type); in TEST() 18 EXPECT_EQ("This is a literal", pattern.ranges()[0].literal); in TEST() 27 ASSERT_EQ(5u, pattern.ranges().size()); in TEST() 29 EXPECT_EQ(&SubstitutionLiteral, pattern.ranges()[0].type); in TEST() 30 EXPECT_EQ("AA", pattern.ranges()[0].literal); in TEST() 31 EXPECT_EQ(&SubstitutionSource, pattern.ranges()[1].type); in TEST() 32 EXPECT_EQ(&SubstitutionSourceNamePart, pattern.ranges()[2].type); in TEST() 33 EXPECT_EQ(&SubstitutionLiteral, pattern.ranges()[3].type); in TEST() 34 EXPECT_EQ("BB", pattern.ranges()[3].literal); in TEST() [all …]
|
/third_party/libphonenumber/metadata/src/main/java/com/google/i18n/phonenumbers/metadata/ |
D | PrefixTree.java | 51 public static PrefixTree from(RangeTree ranges) { in from() argument 52 return !ranges.isEmpty() in from() 53 ? new PrefixTree(removeTrailingAnyDigitPaths(TrimmingVisitor.trim(ranges))) in from() 116 private final RangeTree ranges; field in PrefixTree 118 private PrefixTree(RangeTree ranges) { in PrefixTree() argument 120 this.ranges = ranges; in PrefixTree() 129 return ranges; in asRangeTree() 139 return ranges.isEmpty(); in isEmpty() 150 return !ranges.isEmpty() && ranges.getInitial().equals(RangeTree.getTerminal()); in isIdentity() 155 DfaNode node = ranges.getInitial(); in prefixes() [all …]
|
/third_party/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
D | CollationWeights.java | 99 int minLength=ranges[0].length; in allocWeights() 113 for (int i = 0; i < rangeCount && ranges[i].length == minLength; ++i) { in allocWeights() 114 lengthenRange(ranges[i]); in allocWeights() 125 if(rangeCount < ranges.length) { in allocWeights() 126 ranges[rangeCount] = null; // force a crash when going out of bounds in allocWeights() 143 WeightRange range = ranges[rangeIndex]; in nextWeight() 444 ranges[0] = middle; in getWeightRanges() 450 ranges[rangeCount++]=upper[length]; in getWeightRanges() 453 ranges[rangeCount++]=lower[length]; in getWeightRanges() 461 for(int i = 0; i < rangeCount && ranges[i].length <= (minLength + 1); ++i) { in allocWeightsInShortRanges() [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/coll/ |
D | CollationWeights.java | 101 int minLength=ranges[0].length; in allocWeights() 115 for (int i = 0; i < rangeCount && ranges[i].length == minLength; ++i) { in allocWeights() 116 lengthenRange(ranges[i]); in allocWeights() 127 if(rangeCount < ranges.length) { in allocWeights() 128 ranges[rangeCount] = null; // force a crash when going out of bounds in allocWeights() 145 WeightRange range = ranges[rangeIndex]; in nextWeight() 446 ranges[0] = middle; in getWeightRanges() 452 ranges[rangeCount++]=upper[length]; in getWeightRanges() 455 ranges[rangeCount++]=lower[length]; in getWeightRanges() 463 for(int i = 0; i < rangeCount && ranges[i].length <= (minLength + 1); ++i) { in allocWeightsInShortRanges() [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
D | StringRange.java | 105 for (Ranges ranges : compacted) { in compact() 106 adder.add(ranges.start(), ranges.end(shorterPairs)); in compact() 123 LinkedList<Ranges> ranges = new LinkedList<Ranges>(inputRanges); in compact() local 126 for (Iterator<Ranges> it = ranges.iterator(); it.hasNext();) { in compact() 137 return ranges; in compact() 171 private final Range[] ranges; field in StringRange.Ranges 174 ranges = new Range[array.length]; in Ranges() 176 ranges[i] = new Range(array[i], array[i]); in Ranges() 181 for (int i = ranges.length-1; i >= 0; --i) { in merge() 183 if (ranges[i].max != other.ranges[i].min-1) { // not adjacent in merge() [all …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | StringRange.java | 98 for (Ranges ranges : compacted) { in compact() 99 adder.add(ranges.start(), ranges.end(shorterPairs)); in compact() 116 LinkedList<Ranges> ranges = new LinkedList<Ranges>(inputRanges); in compact() local 119 for (Iterator<Ranges> it = ranges.iterator(); it.hasNext();) { in compact() 130 return ranges; in compact() 164 private final Range[] ranges; field in StringRange.Ranges 167 ranges = new Range[array.length]; in Ranges() 169 ranges[i] = new Range(array[i], array[i]); in Ranges() 174 for (int i = ranges.length-1; i >= 0; --i) { in merge() 176 if (ranges[i].max != other.ranges[i].min-1) { // not adjacent in merge() [all …]
|
/third_party/icu/icu4c/source/i18n/ |
D | collationweights.cpp | 374 uprv_memcpy(ranges, &middle, sizeof(WeightRange)); in getWeightRanges() 380 uprv_memcpy(ranges+rangeCount, upper+length, sizeof(WeightRange)); in getWeightRanges() 384 uprv_memcpy(ranges+rangeCount, lower+length, sizeof(WeightRange)); in getWeightRanges() 394 for(int32_t i = 0; i < rangeCount && ranges[i].length <= (minLength + 1); ++i) { in allocWeightsInShortRanges() 395 if(n <= ranges[i].count) { in allocWeightsInShortRanges() 397 if(ranges[i].length > minLength) { in allocWeightsInShortRanges() 401 ranges[i].count = n; in allocWeightsInShortRanges() 411 uprv_sortArray(ranges, rangeCount, sizeof(WeightRange), in allocWeightsInShortRanges() 417 n -= ranges[i].count; // still >0 in allocWeightsInShortRanges() 430 ranges[minLengthRangeCount].length == minLength; in allocWeightsInMinLengthRanges() [all …]
|
/third_party/node/deps/icu-small/source/i18n/ |
D | collationweights.cpp | 374 uprv_memcpy(ranges, &middle, sizeof(WeightRange)); in getWeightRanges() 380 uprv_memcpy(ranges+rangeCount, upper+length, sizeof(WeightRange)); in getWeightRanges() 384 uprv_memcpy(ranges+rangeCount, lower+length, sizeof(WeightRange)); in getWeightRanges() 394 for(int32_t i = 0; i < rangeCount && ranges[i].length <= (minLength + 1); ++i) { in allocWeightsInShortRanges() 395 if(n <= ranges[i].count) { in allocWeightsInShortRanges() 397 if(ranges[i].length > minLength) { in allocWeightsInShortRanges() 401 ranges[i].count = n; in allocWeightsInShortRanges() 411 uprv_sortArray(ranges, rangeCount, sizeof(WeightRange), in allocWeightsInShortRanges() 417 n -= ranges[i].count; // still >0 in allocWeightsInShortRanges() 430 ranges[minLengthRangeCount].length == minLength; in allocWeightsInMinLengthRanges() [all …]
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | collationweights.cpp | 374 uprv_memcpy(ranges, &middle, sizeof(WeightRange)); in getWeightRanges() 380 uprv_memcpy(ranges+rangeCount, upper+length, sizeof(WeightRange)); in getWeightRanges() 384 uprv_memcpy(ranges+rangeCount, lower+length, sizeof(WeightRange)); in getWeightRanges() 394 for(int32_t i = 0; i < rangeCount && ranges[i].length <= (minLength + 1); ++i) { in allocWeightsInShortRanges() 395 if(n <= ranges[i].count) { in allocWeightsInShortRanges() 397 if(ranges[i].length > minLength) { in allocWeightsInShortRanges() 401 ranges[i].count = n; in allocWeightsInShortRanges() 411 uprv_sortArray(ranges, rangeCount, sizeof(WeightRange), in allocWeightsInShortRanges() 417 n -= ranges[i].count; // still >0 in allocWeightsInShortRanges() 430 ranges[minLengthRangeCount].length == minLength; in allocWeightsInMinLengthRanges() [all …]
|
/third_party/flutter/skia/third_party/externals/icu/source/i18n/ |
D | collationweights.cpp | 374 uprv_memcpy(ranges, &middle, sizeof(WeightRange)); in getWeightRanges() 380 uprv_memcpy(ranges+rangeCount, upper+length, sizeof(WeightRange)); in getWeightRanges() 384 uprv_memcpy(ranges+rangeCount, lower+length, sizeof(WeightRange)); in getWeightRanges() 394 for(int32_t i = 0; i < rangeCount && ranges[i].length <= (minLength + 1); ++i) { in allocWeightsInShortRanges() 395 if(n <= ranges[i].count) { in allocWeightsInShortRanges() 397 if(ranges[i].length > minLength) { in allocWeightsInShortRanges() 401 ranges[i].count = n; in allocWeightsInShortRanges() 411 uprv_sortArray(ranges, rangeCount, sizeof(WeightRange), in allocWeightsInShortRanges() 417 n -= ranges[i].count; // still >0 in allocWeightsInShortRanges() 430 ranges[minLengthRangeCount].length == minLength; in allocWeightsInMinLengthRanges() [all …]
|