Home
last modified time | relevance | path

Searched refs:pat (Results 1 – 25 of 368) sorted by relevance

12345678910>>...15

/third_party/curl/src/
Dtool_urlglob.c40 struct URLPattern *pat = &glob->pattern[glob->size]; in glob_fixed() local
41 pat->type = UPTSet; in glob_fixed()
42 pat->content.Set.size = 1; in glob_fixed()
43 pat->content.Set.ptr_s = 0; in glob_fixed()
44 pat->globindex = -1; in glob_fixed()
46 pat->content.Set.elements = malloc(sizeof(char *)); in glob_fixed()
48 if(!pat->content.Set.elements) in glob_fixed()
51 pat->content.Set.elements[0] = malloc(len + 1); in glob_fixed()
52 if(!pat->content.Set.elements[0]) in glob_fixed()
55 memcpy(pat->content.Set.elements[0], fixed, len); in glob_fixed()
[all …]
/third_party/boost/libs/xpressive/test/
Dregress.txt8 pat=foo
15 pat=bar
22 pat=bat
28 pat=b.*ar
35 pat=b.*r
42 pat=b.*b
49 pat=b.*o
56 pat=b.*oo
63 pat=b.+ar
69 pat=b.+r
[all …]
/third_party/musl/src/regex/
Dfnmatch.c49 static int pat_next(const char *pat, size_t m, size_t *step, int flags) in pat_next() argument
52 if (!m || !*pat) { in pat_next()
57 if (pat[0]=='\\' && pat[1] && !(flags & FNM_NOESCAPE)) { in pat_next()
59 pat++; in pat_next()
63 if (pat[0]=='[') { in pat_next()
65 if (k<m) if (pat[k] == '^' || pat[k] == '!') k++; in pat_next()
66 if (k<m) if (pat[k] == ']') k++; in pat_next()
67 for (; k<m && pat[k] && pat[k]!=']'; k++) { in pat_next()
68 if (k+1<m && pat[k+1] && pat[k]=='[' && (pat[k+1]==':' || pat[k+1]=='.' || pat[k+1]=='=')) { in pat_next()
69 int z = pat[k+1]; in pat_next()
[all …]
Dglob.c35 static int do_glob(char *buf, size_t pos, int type, char *pat, int flags, int (*errfunc)(const char… in do_glob() argument
42 if (*pat && type!=DT_DIR) type = 0; in do_glob()
43 while (pos+1 < PATH_MAX && *pat=='/') buf[pos++] = *pat++; in do_glob()
49 for (; pat[i]!='*' && pat[i]!='?' && (!in_bracket || pat[i]!=']'); i++) { in do_glob()
50 if (!pat[i]) { in do_glob()
52 pat += i; in do_glob()
56 } else if (pat[i] == '[') { in do_glob()
58 } else if (pat[i] == '\\' && !(flags & GLOB_NOESCAPE)) { in do_glob()
62 if (in_bracket && pat[i+1]==']') break; in do_glob()
64 if (!pat[i+1]) return 0; in do_glob()
[all …]
/third_party/python/Lib/
Dfnmatch.py25 def fnmatch(name, pat): argument
41 pat = os.path.normcase(pat)
42 return fnmatchcase(name, pat)
45 def _compile_pattern(pat): argument
46 if isinstance(pat, bytes):
47 pat_str = str(pat, 'ISO-8859-1')
51 res = translate(pat)
54 def filter(names, pat): argument
57 pat = os.path.normcase(pat)
58 match = _compile_pattern(pat)
[all …]
/third_party/gettext/gettext-tools/examples/hello-c++-kde/admin/
Dconfig.pl54 foreach my $pat (@subs) {
55 if ( ($pat =~ m/s%([^%]*)%([^%]*)%g/ )
56 || ($pat =~ m/s%([^%]*)%([^%]*)%;t/ )
57 || ($pat =~ m/s,([^,]*),(.*),;t/)
58 || ($pat =~ m%s/([^/]*)/([^/]*)/g% )
59 || ($pat =~ m%s/([^/]*)/([^/]*)/;t% )
69 } elsif ( ($pat =~ /%([^%]*)%d/ )
70 || ($pat =~ m%/([^/]*)/d% )
74 die "Uhh. Malformed pattern in $ac_subs ($pat)"
75 unless ( $pat =~ /^\s*$/ ); # ignore white lines
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
DIntlTestDecimalFormatAPI.java66 String pat = ",##0.0000"; in testJB1871() local
67 DecimalFormat dec = new DecimalFormat(pat); in testJB1871()
72 errln("Fail: " + number + " x \"" + pat + "\" = \"" + in testJB1871()
76 pat = ",##0.0001"; in testJB1871()
77 dec = new DecimalFormat(pat); in testJB1871()
81 errln("Fail: " + number + " x \"" + pat + "\" = \"" + in testJB1871()
86 pat = ",##0.00000000000000000001"; in testJB1871()
87 dec = new DecimalFormat(pat); in testJB1871()
94 errln("Fail: " + bignumber + " x \"" + pat + "\" = \"" + in testJB1871()
117 DecimalFormat pat = null; in TestAPI() local
[all …]
DIntlTestDecimalFormatAPIC.java64 DecimalFormat pat = null; in TestAPI() local
66 pat = new DecimalFormat(pattern); in TestAPI()
118 res2 = pat.format(l, res2, pos2); in TestAPI()
134 pat.applyPattern(patt); in TestAPI()
135 double d2 = pat.parse(text, pos).doubleValue(); in TestAPI()
146 final DecimalFormatSymbols syms = pat.getDecimalFormatSymbols(); in TestAPI()
148 if (!pat.getDecimalFormatSymbols().equals(def.getDecimalFormatSymbols())) { in TestAPI()
153 pat.setPositivePrefix("+"); in TestAPI()
154 posPrefix = pat.getPositivePrefix(); in TestAPI()
159 pat.setNegativePrefix("-"); in TestAPI()
[all …]
DIntlTestSimpleDateFormatAPI.java62 SimpleDateFormat pat = new SimpleDateFormat(pattern); in TestAPI() local
119 final DateFormatSymbols syms = pat.getDateFormatSymbols(); in TestAPI()
122 if( ! pat.getDateFormatSymbols().equals(def.getDateFormatSymbols()) ) { in TestAPI()
149 pat.applyPattern(p1); in TestAPI()
151 String s2 = pat.toPattern(); in TestAPI()
158 pat.applyLocalizedPattern(p1); in TestAPI()
159 String s3 = pat.toLocalizedPattern(); in TestAPI()
170 pat.applyPattern(p2); in TestAPI()
171 Date dt = pat.parse("2007W014", new ParsePosition(0)); in TestAPI()
/third_party/icu/icu4c/source/test/testdata/
DNumberFormatTestCases.txt19 pat: - "0.####"
21 pat: - "0.####"
24 pat: - "0"
30 pat: - -
32 pat: - "#,@@@"
35 pat: - -
41 pat: - -
46 pat: - -
51 pat: - -
56 pat: - -
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/resources/ohos/global/icu/dev/test/format/
DNumberFormatTestCases.txt21 pat: - "0.####"
23 pat: - "0.####"
26 pat: - "0"
32 pat: - -
34 pat: - "#,@@@"
37 pat: - -
43 pat: - -
48 pat: - -
53 pat: - -
58 pat: - -
[all …]
/third_party/python/Lib/idlelib/idle_test/
Dtest_searchengine.py189 pat = '[a-z'
192 Equal(self.engine.report_error(pat, msg), None)
197 Equal(self.engine.report_error(pat, msg, 5), None)
217 cls.pat = re.compile('target')
233 pat = self.pat
244 Equal(search(text, pat), ('f', (text, pat, 1, 5, True, False)))
246 Equal(search(text, pat), ('f', (text, pat, 1, 5, False, False)))
249 Equal(search(text, pat), ('b', (text, pat, 1, 5, True, False)))
257 Equal(search(text, pat), ('f', (text, pat, 2, 16, True, False)))
258 Equal(search(text, pat, True), ('f', (text, pat, 2, 10, True, True)))
[all …]
Dtest_grep.py93 pat = '*.py'
96 filelist = list(ff(parent, pat, False))
105 filelist = list(ff(parent, pat, True))
123 def report(self, pat): argument
124 _grep.engine._pat = pat
126 _grep.grep_it(re.compile(pat), __file__)
132 pat = 'xyz*'*7
133 lines = self.report(pat)
135 self.assertIn(pat, lines[0])
140 pat = '""" !Changing this line will break Test_findfile.test_found!'
[all …]
/third_party/python/Lib/idlelib/
Dsearchengine.py40 def setpat(self, pat): argument
41 self.patvar.set(pat)
60 def setcookedpat(self, pat): argument
64 pat = re.escape(pat)
65 self.setpat(pat)
68 pat = self.getpat()
70 pat = re.escape(pat)
72 pat = r"\b%s\b" % pat
73 return pat
77 pat = self.getpat()
[all …]
/third_party/node/deps/icu-small/source/common/
Duset_props.cpp36 UnicodeString pat(patternLength==-1, pattern, patternLength); in uset_openPattern() local
37 UnicodeSet* set = new UnicodeSet(pat, *ec); in uset_openPattern()
56 UnicodeString pat(patternLength==-1, pattern, patternLength); in uset_openPatternOptions() local
57 UnicodeSet* set = new UnicodeSet(pat, options, NULL, *ec); in uset_openPatternOptions()
92 UnicodeString pat(pattern, patternLength); in uset_applyPattern() local
96 ((UnicodeSet*) set)->applyPattern(pat, pos, options, NULL, *status); in uset_applyPattern()
123 UnicodeString pat(pattern, patternLength); in uset_resemblesPattern() local
125 return ((pos+1) < pat.length() && in uset_resemblesPattern()
126 pat.charAt(pos) == (UChar)91/*[*/) || in uset_resemblesPattern()
127 UnicodeSet::resemblesPattern(pat, pos); in uset_resemblesPattern()
[all …]
/third_party/skia/third_party/externals/icu/source/common/
Duset_props.cpp36 UnicodeString pat(patternLength==-1, pattern, patternLength); in uset_openPattern() local
37 UnicodeSet* set = new UnicodeSet(pat, *ec); in uset_openPattern()
56 UnicodeString pat(patternLength==-1, pattern, patternLength); in uset_openPatternOptions() local
57 UnicodeSet* set = new UnicodeSet(pat, options, NULL, *ec); in uset_openPatternOptions()
92 UnicodeString pat(pattern, patternLength); in uset_applyPattern() local
96 ((UnicodeSet*) set)->applyPattern(pat, pos, options, NULL, *status); in uset_applyPattern()
123 UnicodeString pat(pattern, patternLength); in uset_resemblesPattern() local
125 return ((pos+1) < pat.length() && in uset_resemblesPattern()
126 pat.charAt(pos) == (UChar)91/*[*/) || in uset_resemblesPattern()
127 UnicodeSet::resemblesPattern(pat, pos); in uset_resemblesPattern()
[all …]
/third_party/flutter/skia/third_party/externals/icu/source/common/
Duset_props.cpp36 UnicodeString pat(patternLength==-1, pattern, patternLength); in uset_openPattern() local
37 UnicodeSet* set = new UnicodeSet(pat, *ec); in uset_openPattern()
56 UnicodeString pat(patternLength==-1, pattern, patternLength); in uset_openPatternOptions() local
57 UnicodeSet* set = new UnicodeSet(pat, options, NULL, *ec); in uset_openPatternOptions()
92 UnicodeString pat(pattern, patternLength); in uset_applyPattern() local
96 ((UnicodeSet*) set)->applyPattern(pat, pos, options, NULL, *status); in uset_applyPattern()
123 UnicodeString pat(pattern, patternLength); in uset_resemblesPattern() local
125 return ((pos+1) < pat.length() && in uset_resemblesPattern()
126 pat.charAt(pos) == (UChar)91/*[*/) || in uset_resemblesPattern()
127 UnicodeSet::resemblesPattern(pat, pos); in uset_resemblesPattern()
[all …]
/third_party/icu/icu4c/source/common/
Duset_props.cpp36 UnicodeString pat(patternLength==-1, pattern, patternLength); in uset_openPattern() local
37 UnicodeSet* set = new UnicodeSet(pat, *ec); in uset_openPattern()
56 UnicodeString pat(patternLength==-1, pattern, patternLength); in uset_openPatternOptions() local
57 UnicodeSet* set = new UnicodeSet(pat, options, NULL, *ec); in uset_openPatternOptions()
92 UnicodeString pat(pattern, patternLength); in uset_applyPattern() local
96 ((UnicodeSet*) set)->applyPattern(pat, pos, options, NULL, *status); in uset_applyPattern()
123 UnicodeString pat(pattern, patternLength); in uset_resemblesPattern() local
125 return ((pos+1) < pat.length() && in uset_resemblesPattern()
126 pat.charAt(pos) == (UChar)91/*[*/) || in uset_resemblesPattern()
127 UnicodeSet::resemblesPattern(pat, pos); in uset_resemblesPattern()
[all …]
/third_party/boost/tools/boost_install/test/iostreams/bzip2-1.0.8/
Dbzgrep17 pat=""
20 -e | -f) opt="$opt $1"; shift; pat="$1"
26 *) if test -z "$pat"; then
27 pat="$1"
35 if test -z "$pat"; then
52 bzip2 -cdfq | $grep $opt "$pat"
60 bzip2 -cdfq "$i" | $grep $opt "$pat" 2>&1 > /dev/null && echo $i
63 bzip2 -cdfq "$i" | $grep $opt "$pat"
79 $grep $opt "$pat" 4>&-; echo "r=$?;" >&4
/third_party/bzip2/
Dbzgrep17 pat=""
20 -e | -f) opt="$opt $1"; shift; pat="$1"
26 *) if test -z "$pat"; then
27 pat="$1"
35 if test -z "$pat"; then
52 bzip2 -cdfq | $grep $opt "$pat"
60 bzip2 -cdfq "$i" | $grep $opt "$pat" 2>&1 > /dev/null && echo $i
63 bzip2 -cdfq "$i" | $grep $opt "$pat"
79 $grep $opt "$pat" 4>&-; echo "r=$?;" >&4
/third_party/boost/tools/boost_install/test/iostreams/bzip2-1.0.6/
Dbzgrep17 pat=""
20 -e | -f) opt="$opt $1"; shift; pat="$1"
26 *) if test -z "$pat"; then
27 pat="$1"
35 if test -z "$pat"; then
52 bzip2 -cdfq | $grep $opt "$pat"
60 bzip2 -cdfq "$i" | $grep $opt "$pat" 2>&1 > /dev/null && echo $i
63 bzip2 -cdfq "$i" | $grep $opt "$pat"
70 bzip2 -cdfq "$i" | $grep $opt "$pat" | sed "s|^|${j}:|"
/third_party/ltp/testcases/kernel/fs/doio/
Dpattern.c40 int pattern_check(char *buf, int buflen, char *pat, int patlen, int patshift) in pattern_check() argument
60 return (memcmp(cp, pat + patshift, nleft) ? -1 : 0); in pattern_check()
62 if (memcmp(cp, pat + patshift, nb)) in pattern_check()
72 return (memcmp(cp, pat, nleft) ? -1 : 0); in pattern_check()
74 if (memcmp(cp, pat, nb)) in pattern_check()
101 int pattern_fill(char *buf, int buflen, char *pat, int patlen, int patshift) in pattern_fill() argument
121 memcpy(cp, pat + patshift, nleft); in pattern_fill()
124 memcpy(cp, pat + patshift, trans); in pattern_fill()
132 memcpy(cp, pat, nleft); in pattern_fill()
135 memcpy(cp, pat, trans); in pattern_fill()
/third_party/icu/icu4c/source/test/cintltst/
Dusettest.c259 char *pat; in expectContainment() local
269 pat=aescstrdup(ustr, length); in expectContainment()
286 log_verbose("Ok: %s %s \"%s\"\n", pat, in expectContainment()
290 log_data_err("FAIL: %s %s \"%s\" (Are you missing data?)\n", pat, in expectContainment()
303 log_verbose("Ok: %s %s '%c'\n", pat, in expectContainment()
307 log_data_err("FAIL: %s %s '%c' (Are you missing data?)\n", pat, in expectContainment()
318 log_verbose("Ok: %s %s U+%04X-U+%04X\n", pat, in expectContainment()
322 log_data_err("FAIL: %s %s U+%04X-U+%04X (Are you missing data?)\n", pat, in expectContainment()
336 log_verbose("Ok: %s %s U+%04X-U+%04X\n", pat, in expectContainment()
340 log_data_err("FAIL: %s %s U+%04X-U+%04X (Are you missing data?)\n", pat, in expectContainment()
[all …]
/third_party/icu/icu4c/source/test/intltest/
Ddcfmapts.cpp164 DecimalFormat pat(pattern, status); in testAPI() local
189 DecimalFormat copy(pat); in testAPI()
195 if( ! (copy == pat) || copy != pat) { in testAPI()
225 res2 = pat.format(l, res2, pos2); in testAPI()
251 pat.applyPattern(patt, status); in testAPI()
255 pat.parse(text, result1, pos); in testAPI()
262 pat.parse(text, result2, status); in testAPI()
275 const DecimalFormatSymbols *syms = pat.getDecimalFormatSymbols(); in testAPI()
279 if( *(pat.getDecimalFormatSymbols()) != *(def.getDecimalFormatSymbols())) { in testAPI()
284 pat.setPositivePrefix("+"); in testAPI()
[all …]
/third_party/musl/libc-test/src/regression/
Dregex-ere-backref.c9 char pat[] = "(a)\\1"; in main() local
13 n = regcomp(&r, pat, REG_EXTENDED); in main()
16 t_error("regcomp(%s) returned %d (%s) wanted 0\n", pat, n, buf); in main()
23 pat, n, buf); in main()
30 pat, n, buf); in main()

12345678910>>...15