Home
last modified time | relevance | path

Searched refs:matches (Results 1 – 25 of 1541) sorted by relevance

12345678910>>...62

/external/clang/unittests/ASTMatchers/
DASTMatchersNodeTest.cpp36 EXPECT_TRUE(matches("namespace x { class X {}; } using x::X;", in TEST()
42 EXPECT_TRUE(matches("typedef int X;", NamedX)); in TEST()
43 EXPECT_TRUE(matches("int X;", NamedX)); in TEST()
44 EXPECT_TRUE(matches("class foo { virtual void X(); };", NamedX)); in TEST()
45 EXPECT_TRUE(matches("void foo() try { } catch(int X) { }", NamedX)); in TEST()
46 EXPECT_TRUE(matches("void foo() { int X; }", NamedX)); in TEST()
47 EXPECT_TRUE(matches("namespace X { }", NamedX)); in TEST()
48 EXPECT_TRUE(matches("enum X { A, B, C };", NamedX)); in TEST()
55 EXPECT_TRUE(matches("typedef int Xa;", NamedX)); in TEST()
56 EXPECT_TRUE(matches("int Xb;", NamedX)); in TEST()
[all …]
DASTMatchersNarrowingTest.cpp28 EXPECT_TRUE(matches(Program, in TEST()
31 EXPECT_TRUE(matches(Program, in TEST()
36 EXPECT_TRUE(matches(Program, in TEST()
42 EXPECT_TRUE(matches(Program, in TEST()
53 EXPECT_TRUE(matches("class Y { class X {}; };", HasClassX)); in TEST()
54 EXPECT_TRUE(matches("class X {};", HasClassX)); in TEST()
58 EXPECT_TRUE(matches("class Y { class X {}; };", YHasClassX)); in TEST()
77 EXPECT_TRUE(matches( in TEST()
89 EXPECT_TRUE(matches( in TEST()
103 EXPECT_TRUE(matches( in TEST()
[all …]
DASTMatchersTraversalTest.cpp23 EXPECT_TRUE(matches("class A { void func(); };", in TEST()
30 EXPECT_TRUE(matches( in TEST()
40 EXPECT_TRUE(matches( in TEST()
55 EXPECT_TRUE(matches("namespace {" in TEST()
63 EXPECT_TRUE(matches("class D{};", decl(hasDeclContext(decl())))); in TEST()
67 EXPECT_TRUE(matches("void f() { int i = 3; }", in TEST()
69 EXPECT_TRUE(matches("void f() { int i = 3; }", in TEST()
72 EXPECT_TRUE(matches("void f() { int i = 3; }", in TEST()
74 EXPECT_TRUE(matches("void f() { int i = 3; }", in TEST()
88 EXPECT_TRUE(matches("void f() { int*** i; }", in TEST()
[all …]
/external/libxml2/result/pattern/
Dmultiple1 Node /c/b[1]/a[1] matches pattern a
2 Node /c/b[1]/a[2] matches pattern a
3 Node /c/c/b/a[1] matches pattern a
4 Node /c/c/b/a[2] matches pattern a
5 Node /c/b[2]/a[1] matches pattern a
6 Node /c/b[2]/a[2] matches pattern a
7 Node /c/b[1] matches pattern b
8 Node /c/c/b matches pattern b
9 Node /c/b[2] matches pattern b
10 Node /c matches pattern c
[all …]
Dconj1 Node /a matches pattern a|b
2 Node /a/b matches pattern a|b
3 Node /a/b/c[1]/b matches pattern a|b
4 Node /a/b/c[2]/b matches pattern a|b
5 Node /a/b/c[2]/c/b matches pattern a|b
6 Node /a/c/b matches pattern a|b
7 Node /a matches pattern a|c
8 Node /a/b/c[1] matches pattern a|c
9 Node /a/b/c[2] matches pattern a|c
10 Node /a/b/c[2]/c matches pattern a|c
[all …]
Dnamespaces1 Node /a matches pattern //a
2 Node /a/b:b/a matches pattern //a
3 Node /a/*[4]/a matches pattern //a
4 Node /a/a:a matches pattern //a:a
5 Node /a/b:b/a/a:a matches pattern //a:a
6 Node /a/*[4] matches pattern //a:a
7 Node /a/c:a matches pattern //a:a
8 Node /a/b matches pattern //b
9 Node /a/a:a/b:b matches pattern //b:b
10 Node /a/b:b matches pattern //b:b
[all …]
Dsimple1 Node /a matches pattern a
2 Node /a/b matches pattern b
3 Node /a/b matches pattern b
4 Node /a matches pattern /a
5 Node /a/b matches pattern a/b
6 Node /a/b/c matches pattern a/b/c
7 Node /a matches pattern //a
8 Node /a/b matches pattern //b
9 Node /a/b/c matches pattern //c
10 Node /a/b matches pattern a//b
[all …]
/external/guice/extensions/servlet/test/com/google/inject/servlet/
DUriPatternTypeTest.java26 assertTrue(pattern.matches("/foo/asdf")); in testMatches_servlet()
27 assertTrue(pattern.matches("/foo/asdf?val=1")); in testMatches_servlet()
28 assertFalse(pattern.matches("/path/file.bar")); in testMatches_servlet()
29 assertFalse(pattern.matches("/path/file.bar?val=1")); in testMatches_servlet()
30 assertFalse(pattern.matches("/asdf")); in testMatches_servlet()
31 assertFalse(pattern.matches("/asdf?val=1")); in testMatches_servlet()
34 assertFalse(pattern.matches("/foo/asdf")); in testMatches_servlet()
35 assertFalse(pattern.matches("/foo/asdf?val=1")); in testMatches_servlet()
36 assertTrue(pattern.matches("/path/file.bar")); in testMatches_servlet()
37 assertTrue(pattern.matches("/path/file.bar?val=1")); in testMatches_servlet()
[all …]
/external/brotli/enc/
Dstatic_dict.c31 uint32_t* matches) { in AddMatch() argument
33 matches[len] = BROTLI_MIN(uint32_t, matches[len], match); in AddMatch()
83 size_t max_length, uint32_t* matches) { in BrotliFindAllStaticDictionaryMatches() argument
104 AddMatch(id, l, l, matches); in BrotliFindAllStaticDictionaryMatches()
109 AddMatch(id + 12 * n, l - 1, l, matches); in BrotliFindAllStaticDictionaryMatches()
113 AddMatch(id + 49 * n, l + 3, l, matches); in BrotliFindAllStaticDictionaryMatches()
122 AddMatch(id + kOmitLastNTransforms[l - len] * n, len, l, matches); in BrotliFindAllStaticDictionaryMatches()
131 AddMatch(id + n, l + 1, l, matches); in BrotliFindAllStaticDictionaryMatches()
134 AddMatch(id + 28 * n, l + 3, l, matches); in BrotliFindAllStaticDictionaryMatches()
136 if (s[3] == ' ') AddMatch(id + 46 * n, l + 4, l, matches); in BrotliFindAllStaticDictionaryMatches()
[all …]
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/runtime/
DWildcardMatcherTest.java23 assertTrue(new WildcardMatcher("").matches("")); in testEmpty()
24 assertFalse(new WildcardMatcher("").matches("abc")); in testEmpty()
29 assertTrue(new WildcardMatcher("abc/def.txt").matches("abc/def.txt")); in testExact()
34 assertFalse(new WildcardMatcher("abcdef").matches("abcDef")); in testCaseSensitive()
35 assertFalse(new WildcardMatcher("ABCDEF").matches("AbCDEF")); in testCaseSensitive()
40 assertFalse(new WildcardMatcher("rst.xyz").matches("rstAxyz")); in testQuote()
41 assertTrue(new WildcardMatcher("(x)+").matches("(x)+")); in testQuote()
46 assertTrue(new WildcardMatcher("*").matches("")); in testWildcards()
47 assertTrue(new WildcardMatcher("*").matches("java/lang/Object")); in testWildcards()
48 assertTrue(new WildcardMatcher("*Test").matches("jacoco/MatcherTest")); in testWildcards()
[all …]
/external/mockito/src/test/java/org/mockito/internal/matchers/
DInstanceOfTest.java23 assertThat(new InstanceOf(Object.class).matches(new Object())).isTrue(); in should_check_instance_type()
24 assertThat(new InstanceOf(Object.class).matches(new ArrayList())).isTrue(); in should_check_instance_type()
25 assertThat(new InstanceOf(List.class).matches(new ArrayList())).isTrue(); in should_check_instance_type()
26 assertThat(new InstanceOf(List.class).matches(new Object())).isFalse(); in should_check_instance_type()
31 assertThat(new InstanceOf(int.class).matches(1000)).isTrue(); in should_check_for_primitive_wrapper_types()
32 assertThat(new InstanceOf(Integer.class).matches(1000)).isTrue(); in should_check_for_primitive_wrapper_types()
33 assertThat(new InstanceOf(int.class).matches(new Integer(1000))).isTrue(); in should_check_for_primitive_wrapper_types()
34 assertThat(new InstanceOf(Integer.class).matches(new Integer(1000))).isTrue(); in should_check_for_primitive_wrapper_types()
36 assertThat(new InstanceOf(double.class).matches(1000.1)).isTrue(); in should_check_for_primitive_wrapper_types()
37 assertThat(new InstanceOf(Double.class).matches(1000.1)).isTrue(); in should_check_for_primitive_wrapper_types()
[all …]
DStringMatchersTest.java14 assertTrue(new StartsWith("mockito").matches("mockito is here")); in startsWithString()
19 assertFalse(new StartsWith("junit").matches("mockito is here")); in doesNotStartWithString()
24 assertFalse(new StartsWith("java").matches(null)); in nullStartsWith()
29 assertTrue(new EndsWith("mockito").matches("here is mockito")); in endsWithString()
34 assertFalse(new EndsWith("junit").matches("here is mockito")); in doesNotEndWithString()
39 assertFalse(new EndsWith("java").matches(null)); in nullEndsWith()
44 assertTrue(new Contains("mockito").matches("****mockito****")); in containsString()
49 assertFalse(new Contains("junit").matches("****mockito****")); in stringDoesNotContain()
54 assertFalse(new Contains("mockito").matches(null)); in nullContainsNothing()
59 assertTrue(new Find("eleph.nt").matches("the elephant in the room")); in matchesRegex()
[all …]
/external/clang/unittests/ASTMatchers/Dynamic/
DRegistryTest.cpp139 EXPECT_TRUE(matches(ClassSnippet, IsArrowValue)); in TEST_F()
140 EXPECT_TRUE(matches(BoolSnippet, BoolValue)); in TEST_F()
141 EXPECT_FALSE(matches(ClassSnippet, BoolValue)); in TEST_F()
142 EXPECT_FALSE(matches(BoolSnippet, IsArrowValue)); in TEST_F()
149 EXPECT_TRUE(matches("class X {};", Value)); in TEST_F()
150 EXPECT_FALSE(matches("int x;", Value)); in TEST_F()
154 EXPECT_TRUE(matches("void foo(int,int);", Value)); in TEST_F()
155 EXPECT_FALSE(matches("void foo(int);", Value)); in TEST_F()
168 EXPECT_FALSE(matches(code, HasInitializerSimple)); in TEST_F()
169 EXPECT_FALSE(matches(code, HasInitializerComplex)); in TEST_F()
[all …]
/external/lzma/Java/Tukaani/src/org/tukaani/xz/lzma/
DLZMAEncoderFast.java21 private Matches matches = null; field in LZMAEncoderFast
50 matches = getMatches(); in getNextSymbol()
87 if (matches.count > 0) { in getNextSymbol()
88 mainLen = matches.len[matches.count - 1]; in getNextSymbol()
89 mainDist = matches.dist[matches.count - 1]; in getNextSymbol()
97 while (matches.count > 1 in getNextSymbol()
98 && mainLen == matches.len[matches.count - 2] + 1) { in getNextSymbol()
99 if (!changePair(matches.dist[matches.count - 2], mainDist)) in getNextSymbol()
102 --matches.count; in getNextSymbol()
103 mainLen = matches.len[matches.count - 1]; in getNextSymbol()
[all …]
/external/llvm/lib/Option/
DArgList.cpp30 if (O.matches(Id0) || in SkipToNextArg()
31 (Id1.isValid() && O.matches(Id1)) || in SkipToNextArg()
32 (Id2.isValid() && O.matches(Id2))) in SkipToNextArg()
43 [=](Arg *A) { return A->getOption().matches(Id); }), in eraseArg()
50 if ((*it)->getOption().matches(Id)) in getLastArgNoClaim()
58 if ((*it)->getOption().matches(Id0) || in getLastArgNoClaim()
59 (*it)->getOption().matches(Id1)) in getLastArgNoClaim()
68 if ((*it)->getOption().matches(Id0) || (*it)->getOption().matches(Id1) || in getLastArgNoClaim()
69 (*it)->getOption().matches(Id2)) in getLastArgNoClaim()
78 if ((*it)->getOption().matches(Id0) || (*it)->getOption().matches(Id1) || in getLastArgNoClaim()
[all …]
/external/lzma/Java/Tukaani/src/org/tukaani/xz/lz/
DHC4.java16 private final Matches matches; field in HC4
48 matches = new Matches(niceLen - 1); in HC4()
81 matches.count = 0; in getMatches()
88 return matches; in getMatches()
111 matches.len[0] = 2; in getMatches()
112 matches.dist[0] = delta2 - 1; in getMatches()
113 matches.count = 1; in getMatches()
123 matches.dist[matches.count++] = delta3 - 1; in getMatches()
128 if (matches.count > 0) { in getMatches()
133 matches.len[matches.count - 1] = lenBest; in getMatches()
[all …]
DBT4.java16 private final Matches matches; field in BT4
40 matches = new Matches(niceLen - 1); in BT4()
64 matches.count = 0; in getMatches()
72 return matches; in getMatches()
93 matches.len[0] = 2; in getMatches()
94 matches.dist[0] = delta2 - 1; in getMatches()
95 matches.count = 1; in getMatches()
105 matches.dist[matches.count++] = delta3 - 1; in getMatches()
110 if (matches.count > 0) { in getMatches()
115 matches.len[matches.count - 1] = lenBest; in getMatches()
[all …]
/external/iproute2/ip/
Dip.c109 if (matches(argv0, c->cmd) == 0) in do_cmd()
193 if (matches(opt, "-loops") == 0) { in main()
199 } else if (matches(opt, "-family") == 0) { in main()
224 } else if (matches(opt, "-human") == 0 || in main()
225 matches(opt, "-human-readable") == 0) { in main()
227 } else if (matches(opt, "-iec") == 0) { in main()
229 } else if (matches(opt, "-stats") == 0 || in main()
230 matches(opt, "-statistics") == 0) { in main()
232 } else if (matches(opt, "-details") == 0) { in main()
234 } else if (matches(opt, "-resolve") == 0) { in main()
[all …]
Diplink_vxlan.c81 if (!matches(*argv, "id") || in vxlan_parse_opt()
82 !matches(*argv, "vni")) { in vxlan_parse_opt()
88 } else if (!matches(*argv, "group")) { in vxlan_parse_opt()
96 } else if (!matches(*argv, "remote")) { in vxlan_parse_opt()
104 } else if (!matches(*argv, "local")) { in vxlan_parse_opt()
115 } else if (!matches(*argv, "dev")) { in vxlan_parse_opt()
123 } else if (!matches(*argv, "ttl") || in vxlan_parse_opt()
124 !matches(*argv, "hoplimit")) { in vxlan_parse_opt()
135 } else if (!matches(*argv, "tos") || in vxlan_parse_opt()
136 !matches(*argv, "dsfield")) { in vxlan_parse_opt()
[all …]
/external/iproute2/tc/
Dm_csum.c49 if ((matches(*argv, "iph") == 0) || in parse_csum_args()
50 (matches(*argv, "ip4h") == 0) || in parse_csum_args()
51 (matches(*argv, "ipv4h") == 0)) in parse_csum_args()
54 else if (matches(*argv, "icmp") == 0) in parse_csum_args()
57 else if (matches(*argv, "igmp") == 0) in parse_csum_args()
60 else if (matches(*argv, "tcp") == 0) in parse_csum_args()
63 else if (matches(*argv, "udp") == 0) in parse_csum_args()
66 else if (matches(*argv, "udplite") == 0) in parse_csum_args()
69 else if ((matches(*argv, "and") == 0) || in parse_csum_args()
70 (matches(*argv, "or") == 0) || in parse_csum_args()
[all …]
Dtc.c233 if (matches(*argv, "qdisc") == 0) in do_cmd()
235 if (matches(*argv, "class") == 0) in do_cmd()
237 if (matches(*argv, "filter") == 0) in do_cmd()
239 if (matches(*argv, "actions") == 0) in do_cmd()
241 if (matches(*argv, "monitor") == 0) in do_cmd()
243 if (matches(*argv, "exec") == 0) in do_cmd()
245 if (matches(*argv, "help") == 0) { in do_cmd()
313 if (matches(argv[1], "-stats") == 0 || in main()
314 matches(argv[1], "-statistics") == 0) { in main()
316 } else if (matches(argv[1], "-details") == 0) { in main()
[all …]
Dm_mirred.c81 if (matches(*argv, "action") == 0) { in parse_egress()
83 } else if (matches(*argv, "egress") == 0) { in parse_egress()
89 if (matches(*argv, "index") == 0) { in parse_egress()
105 } else if (!mirror && matches(*argv, "mirror") == 0) { in parse_egress()
114 } else if (!redir && matches(*argv, "redirect") == 0) { in parse_egress()
123 } else if ((redir || mirror) && matches(*argv, "dev") == 0) { in parse_egress()
161 if (matches(*argv, "reclassify") == 0) { in parse_egress()
164 } else if (matches(*argv, "pipe") == 0) { in parse_egress()
167 } else if (matches(*argv, "drop") == 0 || in parse_egress()
168 matches(*argv, "shot") == 0) { in parse_egress()
[all …]
/external/libedit/src/
Dfilecomplete.c286 size_t matches; in completion_matches() local
288 matches = 0; in completion_matches()
290 while ((retstr = (*genfunc) (text, (int)matches)) != NULL) { in completion_matches()
292 if (matches + 3 >= match_list_len) { in completion_matches()
294 while (matches + 3 >= match_list_len) in completion_matches()
305 match_list[++matches] = retstr; in completion_matches()
315 for (; which <= matches; which++) { in completion_matches()
332 match_list[matches + 1] = NULL; in completion_matches()
358 fn_display_match_list (EditLine *el, char **matches, size_t num, size_t width) in fn_display_match_list() argument
364 matches++; in fn_display_match_list()
[all …]
/external/mesa3d/src/gallium/drivers/r300/compiler/tests/
Drc_test_helpers.c76 static int match_length(regmatch_t * matches, int index) in match_length() argument
78 return matches[index].rm_eo - matches[index].rm_so; in match_length()
84 regmatch_t * matches, in regex_helper() argument
99 err_code = regexec(&regex, search_str, num_matches, matches, 0); in regex_helper()
103 matches[i].rm_so, matches[i].rm_eo); in regex_helper()
140 regmatch_t matches[REGEX_SRC_MATCHES]; in init_rc_normal_src() local
146 if (!regex_helper(regex_str, src_str, matches, REGEX_SRC_MATCHES)) { in init_rc_normal_src()
152 tokens.Negate.String = src_str + matches[1].rm_so; in init_rc_normal_src()
153 tokens.Negate.Length = match_length(matches, 1); in init_rc_normal_src()
154 tokens.Abs.String = src_str + matches[2].rm_so; in init_rc_normal_src()
[all …]
/external/guice/core/test/com/google/inject/matcher/
DMatcherTest.java49 assertTrue(any().matches(null)); in testAny()
56 assertFalse(not(any()).matches(null)); in testNot()
63 assertTrue(any().and(any()).matches(null)); in testAnd()
64 assertFalse(any().and(not(any())).matches(null)); in testAnd()
71 assertTrue(any().or(not(any())).matches(null)); in testOr()
72 assertFalse(not(any()).or(not(any())).matches(null)); in testOr()
79 assertTrue(annotatedWith(Foo.class).matches(Bar.class)); in testAnnotatedWith()
80 assertFalse(annotatedWith(Foo.class).matches( in testAnnotatedWith()
94 assertTrue(subclassesOf(Runnable.class).matches(Runnable.class)); in testSubclassesOf()
95 assertTrue(subclassesOf(Runnable.class).matches(MyRunnable.class)); in testSubclassesOf()
[all …]

12345678910>>...62