Home
last modified time | relevance | path

Searched refs:pattern (Results 1 – 25 of 3742) sorted by relevance

12345678910>>...150

/external/openssh/openbsd-compat/
Dfnmatch.c104 classmatch(const char *pattern, char test, int foldcase, const char **ep) in classmatch() argument
106 const char * const mismatch = pattern; in classmatch()
112 if (pattern[0] != '[' || pattern[1] != ':') { in classmatch()
116 pattern += 2; in classmatch()
118 if ((colon = strchr(pattern, ':')) == NULL || colon[1] != ']') { in classmatch()
123 len = (size_t)(colon - pattern); in classmatch()
125 if (foldcase && strncmp(pattern, "upper:]", 7) == 0) in classmatch()
126 pattern = "lower:]"; in classmatch()
128 if (!strncmp(pattern, cc->name, len) && cc->name[len] == '\0') { in classmatch()
149 static int fnmatch_ch(const char **pattern, const char **string, int flags) in fnmatch_ch() argument
[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 …]
/external/ImageMagick/MagickCore/
Dtoken.c356 const char *magick_restrict expression,const char *magick_restrict pattern, in GlobExpression() argument
369 if (pattern == (char *) NULL) in GlobExpression()
371 if (GetUTFCode(pattern) == 0) in GlobExpression()
373 if (LocaleCompare(pattern,"*") == 0) in GlobExpression()
375 p=pattern+strlen(pattern)-1; in GlobExpression()
376 if ((GetUTFCode(p) == ']') && (strchr(pattern,'[') != (char *) NULL)) in GlobExpression()
388 (void) CopyMagickString(image_info->filename,pattern,MagickPathExtent); in GlobExpression()
392 if (LocaleCompare(image_info->filename,pattern) != 0) in GlobExpression()
403 while ((GetUTFCode(pattern) != 0) && (done == MagickFalse)) in GlobExpression()
406 if ((GetUTFCode(pattern) != '{') && (GetUTFCode(pattern) != '*')) in GlobExpression()
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/
DMathRuntimeException.java48 private final Localizable pattern; field in MathRuntimeException
64 public MathRuntimeException(final String pattern, final Object ... arguments) { in MathRuntimeException() argument
65 this(new DummyLocalizable(pattern), arguments); in MathRuntimeException()
76 public MathRuntimeException(final Localizable pattern, final Object ... arguments) { in MathRuntimeException() argument
77 this.pattern = pattern; in MathRuntimeException()
90 this.pattern = LocalizedFormats.SIMPLE_MESSAGE; in MathRuntimeException()
106 final String pattern, final Object ... arguments) { in MathRuntimeException() argument
107 this(rootCause, new DummyLocalizable(pattern), arguments); in MathRuntimeException()
121 final Localizable pattern, final Object ... arguments) { in MathRuntimeException() argument
123 this.pattern = pattern; in MathRuntimeException()
[all …]
/external/python/cpython3/Modules/
Dsre_lib.h202 LOCAL(Py_ssize_t) SRE(match)(SRE_STATE* state, const SRE_CODE* pattern, int toplevel);
205 SRE(count)(SRE_STATE* state, const SRE_CODE* pattern, Py_ssize_t maxcount) in SRE()
217 switch (pattern[0]) { in SRE()
221 TRACE(("|%p|%p|COUNT IN\n", pattern, ptr)); in SRE()
222 while (ptr < end && SRE(charset)(state, pattern + 2, *ptr)) in SRE()
228 TRACE(("|%p|%p|COUNT ANY\n", pattern, ptr)); in SRE()
236 TRACE(("|%p|%p|COUNT ANY_ALL\n", pattern, ptr)); in SRE()
242 chr = pattern[1]; in SRE()
243 TRACE(("|%p|%p|COUNT LITERAL %d\n", pattern, ptr, chr)); in SRE()
256 chr = pattern[1]; in SRE()
[all …]
/external/rust/crates/regex-automata/data/tests/fowler/
Dbasic.toml4 pattern = '''abracadabra$'''
11 pattern = '''a...b'''
18 pattern = '''XXXXXX'''
25 pattern = '''\)'''
32 pattern = '''a]'''
39 pattern = '''\}'''
46 pattern = '''\]'''
53 pattern = ''']'''
60 pattern = '''^a'''
67 pattern = '''\^a'''
[all …]
Drepetition.toml4 pattern = '''((..)|(.))'''
11 pattern = '''((..)|(.))((..)|(.))'''
18 pattern = '''((..)|(.))((..)|(.))((..)|(.))'''
25 pattern = '''((..)|(.)){1}'''
32 pattern = '''((..)|(.)){2}'''
39 pattern = '''((..)|(.)){3}'''
46 pattern = '''((..)|(.))*'''
53 pattern = '''((..)|(.))'''
60 pattern = '''((..)|(.))((..)|(.))'''
67 pattern = '''((..)|(.))((..)|(.))((..)|(.))'''
[all …]
Dnullsubexpr.toml4 pattern = '''(a*)*'''
11 pattern = '''(a*)*'''
18 pattern = '''(a*)*'''
25 pattern = '''(a*)*'''
32 pattern = '''(a*)+'''
39 pattern = '''(a*)+'''
46 pattern = '''(a*)+'''
53 pattern = '''(a*)+'''
60 pattern = '''(a+)*'''
67 pattern = '''(a+)*'''
[all …]
Drepetition-long.toml4 pattern = '''X(.?){0,}Y'''
11 pattern = '''X(.?){1,}Y'''
18 pattern = '''X(.?){2,}Y'''
25 pattern = '''X(.?){3,}Y'''
32 pattern = '''X(.?){4,}Y'''
39 pattern = '''X(.?){5,}Y'''
46 pattern = '''X(.?){6,}Y'''
53 pattern = '''X(.?){7,}Y'''
60 pattern = '''X(.?){8,}Y'''
67 pattern = '''X(.?){0,8}Y'''
[all …]
/external/guice/extensions/servlet/test/com/google/inject/servlet/
DUriPatternTypeTest.java26 UriPatternMatcher pattern = UriPatternType.get(UriPatternType.SERVLET, "/foo/*"); in testMatches_servlet() local
27 assertTrue(pattern.matches("/foo/asdf")); in testMatches_servlet()
28 assertTrue(pattern.matches("/foo/asdf?val=1")); in testMatches_servlet()
29 assertFalse(pattern.matches("/path/file.bar")); in testMatches_servlet()
30 assertFalse(pattern.matches("/path/file.bar?val=1")); in testMatches_servlet()
31 assertFalse(pattern.matches("/asdf")); in testMatches_servlet()
32 assertFalse(pattern.matches("/asdf?val=1")); in testMatches_servlet()
34 pattern = UriPatternType.get(UriPatternType.SERVLET, "*.bar"); in testMatches_servlet()
35 assertFalse(pattern.matches("/foo/asdf")); in testMatches_servlet()
36 assertFalse(pattern.matches("/foo/asdf?val=1")); in testMatches_servlet()
[all …]
/external/rust/crates/regex-automata/data/tests/
Dunicode.toml3 pattern = '☃'
9 pattern = '☃+'
16 pattern = '☃+'
23 pattern = 'Δ'
30 pattern = '[☃Ⅰ]+'
36 pattern = '\pN'
42 pattern = '\pN+'
48 pattern = '\PN+'
54 pattern = '[\PN]+'
60 pattern = '[^\PN]+'
[all …]
Dcrazy.toml3 pattern = '[-+]?[0-9]*\.?[0-9]+'
9 pattern = '[-+]?[0-9]*\.?[0-9]+'
15 pattern = '[-+]?[0-9]*\.?[0-9]+'
22 pattern = '[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}'
29 pattern = '[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}'
35 pattern = '''[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-…
41 pattern = '(19|20)\d\d[- /.](0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])'
47 pattern = '(19|20)\d\d[- /.](0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])'
53 pattern = '(19|20)\d\d[- /.](0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])'
60 pattern = "[^ac]"
[all …]
/external/python/parse_type/parse_type/
Dcardinality.py15 def pattern_group_count(pattern): argument
17 return pattern.replace(r"\(", "").count("(")
51 def make_pattern(self, pattern, listsep=','): argument
64 return pattern
66 return self.schema % pattern
68 return self.schema % (pattern, listsep, pattern)
70 def compute_group_count(self, pattern): argument
81 return group_count + pattern_repeated * pattern_group_count(pattern)
96 def with_cardinality(cls, cardinality, converter, pattern=None, argument
111 return builder_func(converter, pattern)
[all …]
/external/python/cpython3/Lib/
Dre.py188 def match(pattern, string, flags=0): argument
191 return _compile(pattern, flags).match(string)
193 def fullmatch(pattern, string, flags=0): argument
196 return _compile(pattern, flags).fullmatch(string)
198 def search(pattern, string, flags=0): argument
201 return _compile(pattern, flags).search(string)
203 def sub(pattern, repl, string, count=0, flags=0): argument
210 return _compile(pattern, flags).sub(repl, string, count)
212 def subn(pattern, repl, string, count=0, flags=0): argument
221 return _compile(pattern, flags).subn(repl, string, count)
[all …]
/external/libchrome/base/test/
Dfontconfig_util_linux.cc40 <match target="pattern">
52 <match target="pattern">
61 <match target="pattern">
70 <match target="pattern">
81 <match target="pattern">
90 <match target="pattern">
99 <match target="pattern">
108 <match target="pattern">
117 <match target="pattern">
126 <match target="pattern">
[all …]
/external/libchrome/base/strings/
Dpattern.cc22 constexpr bool SearchForChars(const CHAR** pattern, in SearchForChars() argument
28 const CHAR* pattern_start = *pattern; in SearchForChars()
32 if (*pattern == pattern_end) { in SearchForChars()
39 if (!escape && IsWildcard(**pattern)) in SearchForChars()
44 if (!escape && **pattern == '\\') { in SearchForChars()
46 next(pattern, pattern_end); in SearchForChars()
56 const CHAR* pattern_next = *pattern; in SearchForChars()
61 *pattern = pattern_next; in SearchForChars()
79 *pattern = pattern_start; in SearchForChars()
90 constexpr int EatWildcards(const CHAR** pattern, const CHAR* end, NEXT next) { in EatWildcards() argument
[all …]
/external/pcre/dist2/src/
Dpcre2_convert.c125 convert_posix(uint32_t pattype, PCRE2_SPTR pattern, PCRE2_SIZE plength, in convert_posix() argument
130 PCRE2_SPTR posix = pattern; in convert_posix()
482 PCRE2_SPTR pattern = start; in convert_glob_parse_class() local
489 if (pattern >= pattern_end) return 0; in convert_glob_parse_class()
491 c = *pattern++; in convert_glob_parse_class()
496 if (c != CHAR_COLON || pattern >= pattern_end || in convert_glob_parse_class()
497 *pattern != CHAR_RIGHT_SQUARE_BRACKET) in convert_glob_parse_class()
507 pattern = start; in convert_glob_parse_class()
509 while (*pattern == (PCRE2_UCHAR) *class_ptr) in convert_glob_parse_class()
511 if (*pattern == CHAR_COLON) in convert_glob_parse_class()
[all …]
/external/apache-http/src/org/apache/http/protocol/
DUriPatternMatcher.java66 public void register(final String pattern, final Object handler) { in register() argument
67 if (pattern == null) { in register()
73 this.handlerMap.put(pattern, handler); in register()
76 public void unregister(final String pattern) { in unregister() argument
77 if (pattern == null) { in unregister()
80 this.handlerMap.remove(pattern); in unregister()
107 String pattern = (String) it.next(); in lookup() local
108 if (matchUriRequestPattern(pattern, requestURI)) { in lookup()
111 || (bestMatch.length() < pattern.length()) in lookup()
112 || (bestMatch.length() == pattern.length() && pattern.endsWith("*"))) { in lookup()
[all …]
/external/openssh/
Dmatch.c58 match_pattern(const char *s, const char *pattern) in match_pattern() argument
62 if (!*pattern) in match_pattern()
65 if (*pattern == '*') { in match_pattern()
67 pattern++; in match_pattern()
70 if (!*pattern) in match_pattern()
74 if (*pattern != '?' && *pattern != '*') { in match_pattern()
81 if (*s == *pattern && in match_pattern()
82 match_pattern(s + 1, pattern + 1)) in match_pattern()
92 if (match_pattern(s, pattern)) in match_pattern()
105 if (*pattern != '?' && *pattern != *s) in match_pattern()
[all …]
/external/python/cpython2/Lib/
Dre.py138 def match(pattern, string, flags=0): argument
141 return _compile(pattern, flags).match(string)
143 def search(pattern, string, flags=0): argument
146 return _compile(pattern, flags).search(string)
148 def sub(pattern, repl, string, count=0, flags=0): argument
155 return _compile(pattern, flags).sub(repl, string, count)
157 def subn(pattern, repl, string, count=0, flags=0): argument
166 return _compile(pattern, flags).subn(repl, string, count)
168 def split(pattern, string, maxsplit=0, flags=0): argument
171 return _compile(pattern, flags).split(string, maxsplit)
[all …]
/external/curl/src/
Dtool_urlglob.c40 struct URLPattern *pat = &glob->pattern[glob->size]; in glob_fixed()
88 char *pattern = *patternp; in glob_set() local
89 char *opattern = pattern; in glob_set()
92 pat = &glob->pattern[glob->size]; in glob_set()
101 switch (*pattern) { in glob_set()
110 if(opattern == pattern) in glob_set()
142 if(*pattern == '}') { in glob_set()
143 pattern++; /* pass the closing brace */ in glob_set()
149 ++pattern; in glob_set()
157 if(pattern[1]) { in glob_set()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/MSP430/
DMSP430InstrFormats.td47 dag outs, dag ins, string asmstr, list<dag> pattern>
49 let Pattern = pattern;
64 dag outs, dag ins, string asmstr, list<dag> pattern>
65 : IForm<opcode, dest, 1, src, size, outs, ins, asmstr, pattern>;
68 dag outs, dag ins, string asmstr, list<dag> pattern>
69 : IForm8<opcode, DstReg, SrcReg, 2, outs, ins, asmstr, pattern> {
74 dag outs, dag ins, string asmstr, list<dag> pattern>
75 : IForm8<opcode, DstReg, SrcImm, 4, outs, ins, asmstr, pattern> {
83 dag outs, dag ins, string asmstr, list<dag> pattern>
86 let Pattern = pattern;
[all …]
/external/llvm-project/llvm/lib/Target/MSP430/
DMSP430InstrFormats.td47 dag outs, dag ins, string asmstr, list<dag> pattern>
49 let Pattern = pattern;
64 dag outs, dag ins, string asmstr, list<dag> pattern>
65 : IForm<opcode, dest, 1, src, size, outs, ins, asmstr, pattern>;
68 dag outs, dag ins, string asmstr, list<dag> pattern>
69 : IForm8<opcode, DstReg, SrcReg, 2, outs, ins, asmstr, pattern> {
74 dag outs, dag ins, string asmstr, list<dag> pattern>
75 : IForm8<opcode, DstReg, SrcImm, 4, outs, ins, asmstr, pattern> {
83 dag outs, dag ins, string asmstr, list<dag> pattern>
86 let Pattern = pattern;
[all …]
/external/llvm/lib/Target/XCore/
DXCoreInstrFormats.td13 class InstXCore<int sz, dag outs, dag ins, string asmstr, list<dag> pattern>
21 let Pattern = pattern;
27 class PseudoInstXCore<dag outs, dag ins, string asmstr, list<dag> pattern>
28 : InstXCore<0, outs, ins, asmstr, pattern> {
36 class _F3R<bits<5> opc, dag outs, dag ins, string asmstr, list<dag> pattern>
37 : InstXCore<2, outs, ins, asmstr, pattern> {
45 class _F3RImm<bits<5> opc, dag outs, dag ins, string asmstr, list<dag> pattern>
46 : _F3R<opc, outs, ins, asmstr, pattern> {
50 class _FL3R<bits<9> opc, dag outs, dag ins, string asmstr, list<dag> pattern>
51 : InstXCore<4, outs, ins, asmstr, pattern> {
[all …]

12345678910>>...150