Home
last modified time | relevance | path

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

123456

/ndk/sources/host-tools/nawk-20071023/
Dawkgram.y65 %type <p> pas pattern ppattern plist pplist patlist prarg term re
124 FOR '(' opt_simple_stmt ';' opt_nl pattern ';' opt_nl opt_simple_stmt rparen {inloop++;} stmt
138 IF '(' pattern rparen { $$ = notnull($3); }
171 pattern { $$ = notnull($1); }
194 pattern
195 | patlist comma pattern { $$ = linkum($1, $3); }
219 pattern:
220 var ASGNOP pattern { $$ = op2($2, $1, $3); }
221 | pattern '?' pattern ':' pattern %prec '?'
223 | pattern bor pattern %prec BOR
[all …]
/ndk/sources/host-tools/make-3.81/tests/scripts/features/
Dpatspecific_vars2 $description = "Test pattern-specific variable settings.";
5 Create a makefile containing various flavors of pattern-specific variable
64 # TEST #5 -- test pattern-specific exported variables
74 # TEST #6 -- test expansion of pattern-specific simple variables
82 b%: pattern := good $$t
90 bar: a = global: $(global) pattern: $(pattern) inherit: $(inherit)
92 bar: a := global: $(global) pattern: $(pattern) inherit: $(inherit)
98 # pattern target
101 %z: a = global: $(global) pattern: $(pattern) inherit: $(inherit)
103 %z: a := global: $(global) pattern: $(pattern) inherit: $(inherit)
[all …]
/ndk/sources/host-tools/sed-4.2.1/testsuite/
Dtst-rxspencer.c214 test (const char *pattern, int cflags, const char *string, int eflags, in test() argument
221 n = regcomp (&re, pattern, cflags); in test()
319 mb_test (const char *pattern, int cflags, const char *string, int eflags, in mb_test() argument
323 char *pattern_mb = mb_frob_pattern (pattern, letters); in mb_test()
349 mb_tests (const char *pattern, int cflags, const char *string, int eflags, in mb_tests() argument
358 if (strstr (pattern, "[:xdigit:]")) in mb_tests()
362 if (strstr (pattern, "[[=b=]]")) in mb_tests()
370 if (!strchr (pattern, 'a') && !strchr (string, 'a') in mb_tests()
371 && !strchr (pattern, 'A') && !strchr (string, 'A')) in mb_tests()
377 if (!strchr (pattern, 'b') && !strchr (string, 'b') in mb_tests()
[all …]
Dtst-pcre.c42 char *pattern = NULL, *string = NULL; in main() local
124 pattern = realloc (pattern, p - line); in main()
125 if (pattern == NULL) in main()
134 memcpy (pattern, line + 1, p - line - 1); in main()
135 pattern[p - line - 1] = '\0'; in main()
165 n = regcomp (&re, pattern, in main()
172 linenum, pattern, buf); in main()
200 linenum, pattern, string, rm[0].rm_so, rm[0].rm_eo); in main()
224 linenum, pattern, string, num, in main()
237 linenum, pattern, string, p + 2, num, in main()
[all …]
Dtst-boost.c35 frob_escapes (char *src, int pattern) in frob_escapes() argument
62 if (!pattern) in frob_escapes()
85 char *pattern, *string; in main() local
142 pattern = line + strspn (line, " \t"); in main()
143 if (*pattern == '\0') in main()
145 p = pattern + strcspn (pattern, " \t"); in main()
172 frob_escapes (pattern, 1); in main()
176 n = regcomp (&re, pattern, flags); in main()
Druntests.c42 const char * pattern; member
65 if (!last_pattern || strcmp (last_pattern, t->pattern)) in run_a_test()
69 last_pattern = t->pattern; in run_a_test()
70 err = regcomp (&r, t->pattern, REG_EXTENDED); in run_a_test()
89 t->pattern); in run_a_test()
103 t->pattern, t->data, t->expected, err); in run_a_test()
Dbug-regex11.c36 const char *pattern; member
109 n = regcomp (&re, tests[i].pattern, tests[i].flags); in main()
114 printf ("%s: regcomp %lu failed: %s\n", tests[i].pattern, i, buf); in main()
121 printf ("%s: regexec %lu failed\n", tests[i].pattern, i); in main()
134 tests[i].pattern, i, n, rm[n].rm_so, rm[n].rm_eo); in main()
Dbug-regex13.c37 const char *pattern; member
89 err = re_compile_pattern (tests[i].pattern, strlen (tests[i].pattern), in main()
Dbug-regex12.c36 const char *pattern; member
60 n = regcomp (&re, tests[i].pattern, tests[i].flags); in main()
/ndk/sources/cxx-stl/stlport/stlport/stl/
D_monetary.h43 struct pattern { struct
99 pattern pos_format() const { return do_pos_format(); } in pos_format()
100 pattern neg_format() const { return do_neg_format(); } in neg_format()
106 pattern _M_pos_format;
107 pattern _M_neg_format;
120 virtual pattern do_pos_format() const;
121 virtual pattern do_neg_format() const;
139 pattern pos_format() const { return do_pos_format(); } in pos_format()
140 pattern neg_format() const { return do_neg_format(); } in neg_format()
146 pattern _M_pos_format;
[all …]
/ndk/sources/host-tools/make-3.81/
Dvpath.c32 char *pattern; /* The pattern to match. */ member
159 construct_vpath_list (char *pattern, char *dirpath) in construct_vpath_list() argument
168 if (pattern != 0) in construct_vpath_list()
170 pattern = xstrdup (pattern); in construct_vpath_list()
171 percent = find_percent (pattern); in construct_vpath_list()
185 if (pattern == 0 in construct_vpath_list()
187 || (percent - pattern == path->percent - path->pattern)) in construct_vpath_list()
188 && streq (pattern, path->pattern))) in construct_vpath_list()
197 free (path->pattern); in construct_vpath_list()
207 if (pattern != 0) in construct_vpath_list()
[all …]
Dexpand.c328 char *pattern, *replace, *ppercent, *rpercent; in variable_expand_string() local
336 pattern = (char *) alloca (subst_end - subst_beg + 2); in variable_expand_string()
337 *(pattern++) = '%'; in variable_expand_string()
338 bcopy (subst_beg, pattern, subst_end - subst_beg); in variable_expand_string()
339 pattern[subst_end - subst_beg] = '\0'; in variable_expand_string()
350 ppercent = find_percent (pattern); in variable_expand_string()
358 ppercent = pattern; in variable_expand_string()
360 --pattern; in variable_expand_string()
364 o = patsubst_expand (o, value, pattern, replace, in variable_expand_string()
Dar.c201 char *pattern; member
216 if (fnmatch (state->pattern, mem, FNM_PATHNAME|FNM_PERIOD) == 0) in ar_glob_match()
232 glob_pattern_p (const char *pattern, int quote) in glob_pattern_p() argument
237 for (p = pattern; *p != '\0'; ++p) in glob_pattern_p()
283 state.pattern = member_pattern; in ar_glob()
/ndk/sources/cxx-stl/stlport/src/
Dmonetary.cpp25 static void _Init_monetary_formats(money_base::pattern& pos_format, in _Init_monetary_formats()
26 money_base::pattern& neg_format) { in _Init_monetary_formats()
58 money_base::pattern moneypunct<char, true>::do_pos_format() const {return _M_pos_format;} in do_pos_format()
59 money_base::pattern moneypunct<char, true>::do_neg_format() const {return _M_neg_format;} in do_neg_format()
73 money_base::pattern moneypunct<char, false>::do_pos_format() const {return _M_pos_format;} in do_pos_format()
74 money_base::pattern moneypunct<char, false>::do_neg_format() const {return _M_neg_format;} in do_neg_format()
93 money_base::pattern moneypunct<wchar_t, true>::do_pos_format() const in do_pos_format()
95 money_base::pattern moneypunct<wchar_t, true>::do_neg_format() const in do_neg_format()
113 money_base::pattern moneypunct<wchar_t, false>::do_pos_format() const in do_pos_format()
115 money_base::pattern moneypunct<wchar_t, false>::do_neg_format() const in do_neg_format()
/ndk/sources/host-tools/sed-4.2.1/sed/
Dregexp.c53 errcode = regncomp(&new_regex->pattern, new_regex->re, new_regex->sz,
93 new_regex->pattern.fastmap = malloc (1 << (sizeof (char) * 8));
105 &new_regex->pattern);
106 new_regex->pattern.newline_anchor = (new_regex->flags & REG_NEWLINE) != 0;
108 new_regex->pattern.translate = NULL;
117 new_regex->pattern.translate = translate;
127 && new_regex->pattern.re_nsub < needed_sub - 1
240 ret = regexec (&regex->pattern, buf, regsize, regmatch, REG_STARTEND);
247 if (regex->pattern.no_sub && regsize)
250 regex->pattern.regs_allocated = REGS_REALLOCATE;
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locale.categories/category.monetary/locale.moneypunct.byname/
Dneg_format.pass.cpp60 std::money_base::pattern p = f.neg_format(); in main()
68 std::money_base::pattern p = f.neg_format(); in main()
76 std::money_base::pattern p = f.neg_format(); in main()
84 std::money_base::pattern p = f.neg_format(); in main()
93 std::money_base::pattern p = f.neg_format(); in main()
101 std::money_base::pattern p = f.neg_format(); in main()
109 std::money_base::pattern p = f.neg_format(); in main()
117 std::money_base::pattern p = f.neg_format(); in main()
126 std::money_base::pattern p = f.neg_format(); in main()
134 std::money_base::pattern p = f.neg_format(); in main()
[all …]
Dpos_format.pass.cpp60 std::money_base::pattern p = f.pos_format(); in main()
68 std::money_base::pattern p = f.pos_format(); in main()
76 std::money_base::pattern p = f.pos_format(); in main()
84 std::money_base::pattern p = f.pos_format(); in main()
93 std::money_base::pattern p = f.pos_format(); in main()
101 std::money_base::pattern p = f.pos_format(); in main()
109 std::money_base::pattern p = f.pos_format(); in main()
117 std::money_base::pattern p = f.pos_format(); in main()
126 std::money_base::pattern p = f.pos_format(); in main()
134 std::money_base::pattern p = f.pos_format(); in main()
[all …]
/ndk/sources/host-tools/make-3.81/glob/
Dglob.c296 static int glob_in_dir __P ((const char *pattern, const char *directory,
304 int __glob_pattern_p __P ((const char *pattern, int quote));
361 glob (pattern, flags, errfunc, pglob) in glob() argument
362 const char *pattern; in glob()
373 if (pattern == NULL || pglob == NULL || (flags & ~__GLOB_FLAGS) != 0)
381 const char *begin = strchr (pattern, '{');
393 char onealt[strlen (pattern) - 1];
395 char *onealt = (char *) malloc (strlen (pattern) - 1);
406 alt_start = mempcpy (onealt, pattern, begin - pattern);
408 memcpy (onealt, pattern, begin - pattern);
[all …]
Dfnmatch.c153 static int internal_fnmatch __P ((const char *pattern, const char *string,
158 internal_fnmatch (pattern, string, no_leading_period, flags) in internal_fnmatch() argument
159 const char *pattern; in internal_fnmatch()
164 register const char *p = pattern, *n = string;
480 fnmatch (pattern, string, flags) in fnmatch() argument
481 const char *pattern; in fnmatch()
485 return internal_fnmatch (pattern, string, flags & FNM_PERIOD, flags);
/ndk/sources/host-tools/sed-4.2.1/lib/
Dregex.c33 # define regcomp(preg, pattern, cflags) __regcomp (preg, pattern, cflags) argument
44 # define re_compile_pattern(pattern, length, bufp) \ argument
45 __re_compile_pattern (pattern, length, bufp)
/ndk/docs/tools/
Dndk-markdown-substitutions.py12 def __init__(self,pattern,replacement): argument
13 self.pattern = re.compile(pattern)
17 return self.pattern.sub(self.replacement, line)
22 def add_filter(pattern, replacement): argument
24 filter = Filter(pattern, replacement)
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locale.categories/category.monetary/locale.moneypunct/locale.moneypunct.members/
Dpos_format.pass.cpp58 std::money_base::pattern p = f.pos_format(); in main()
66 std::money_base::pattern p = f.pos_format(); in main()
74 std::money_base::pattern p = f.pos_format(); in main()
82 std::money_base::pattern p = f.pos_format(); in main()
Dneg_format.pass.cpp58 std::money_base::pattern p = f.neg_format(); in main()
66 std::money_base::pattern p = f.neg_format(); in main()
74 std::money_base::pattern p = f.neg_format(); in main()
82 std::money_base::pattern p = f.neg_format(); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locale.categories/category.monetary/locale.moneypunct/
Dmoney_base.pass.cpp30 assert(sizeof(std::money_base::pattern) == 4); in main()
31 std::money_base::pattern p; in main()
/ndk/sources/host-tools/make-3.81/tests/scripts/functions/
Dfilter-out7 .o with a single simple pattern. The second filter-out function
8 augments the simple pattern with three literal names, which are
11 the pattern and text arguments. The result of both filter-out

123456