Home
last modified time | relevance | path

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

12345678910>>...17

/external/icu/icu4j/perf-tests/
Ducharacterperf_r.pl39 my $pat = '0 ffff';
42 …"Digit ($pat)", ["$jvm1 Digit $pat" , "$jvm2 Digit $pat" …
43 …"GetNumericValue ($pat)", ["$jvm1 GetNumericValue $pat" , "$jvm2 GetNumericVa…
44 …"GetType ($pat)", ["$jvm1 GetType $pat" , "$jvm2 GetType $pat
45 …"IsDefined ($pat)", ["$jvm1 IsDefined $pat" , "$jvm2 IsDefined $p…
46 …"IsDigit ($pat)", ["$jvm1 IsDigit $pat" , "$jvm2 IsDigit $pat
47 …"IsIdentifierIgnorable ($pat)", ["$jvm1 IsIdentifierIgnorable $pat" , "$jvm2 IsIdentifier…
48 …"IsISOControl ($pat)", ["$jvm1 IsISOControl $pat" , "$jvm2 IsISOControl…
49 …"IsLetter ($pat)", ["$jvm1 IsLetter $pat" , "$jvm2 IsLetter $pa…
50 …"IsLetterOrDigit ($pat)", ["$jvm1 IsLetterOrDigit $pat" , "$jvm2 IsLetterOrDi…
[all …]
Ddateformatperf.pl105 for my $pat (@OPTIONS) {
106 print HTML "<TR><TD>@$pat[0], \"@$pat[1]\", \"@$pat[2]\"</TD>\n";
112 print "\n$testMethod [@$pat]\n";
113 my $t = measure2($testMethod, $pat, -$DURATION);
120 print "\n$baselineMethod [@$pat]\n";
121 my $b = measure2($baselineMethod, $pat, -$DURATION);
202 my $pat = shift;
205 out("<P>Measuring $method for input file @$pat[0] for encoding @$pat[2] , ");
217 my @t = callJava($method, $pat, -$CALIBRATE, 1);
236 my @t = callJava($method, $pat, $iterCount, $NUMPASSES);
[all …]
Ddecimalformatperf.pl100 for my $pat (@OPTIONS) {
101 print HTML "<TR><TD>@$pat[0], \"@$pat[1]\", \"@$pat[2]\"</TD>\n";
107 print "\n$testMethod [@$pat]\n";
108 my $t = measure2($testMethod, $pat, -$DURATION);
115 print "\n$baselineMethod [@$pat]\n";
116 my $b = measure2($baselineMethod, $pat, -$DURATION);
197 my $pat = shift;
200 out("<P>Measuring $method for input file @$pat[0] for encoding @$pat[2] , ");
212 my @t = callJava($method, $pat, -$CALIBRATE, 1);
231 my @t = callJava($method, $pat, $iterCount, $NUMPASSES);
[all …]
Dnormperf.pl154 for my $pat (@OPTIONS) {
155 print HTML "<TR><TD>@$pat[0], @$pat[2]</TD>\n";
161 print "\n$testMethod [@$pat]\n";
162 my $t = measure2($testMethod, $pat, -$DURATION);
169 print "\n$baselineMethod [@$pat]\n";
170 my $b = measure2($baselineMethod, $pat, -$DURATION);
251 my $pat = shift;
254 out("<P>Measuring $method for input file @$pat[0] in @$pat[2] , ");
266 my @t = callJava($method, $pat, -$CALIBRATE, 1);
285 my @t = callJava($method, $pat, $iterCount, $NUMPASSES);
[all …]
Dconverterperf.pl118 for my $pat (@OPTIONS) {
119 print HTML "<TR><TD>@$pat[0], @$pat[2]</TD>\n";
125 print "\n$testMethod [@$pat]\n";
126 my $t = measure2($testMethod, $pat, -$DURATION);
133 print "\n$baselineMethod [@$pat]\n";
134 my $b = measure2($baselineMethod, $pat, -$DURATION);
215 my $pat = shift;
218 out("<P>Measuring $method for input file @$pat[0] for encoding @$pat[2] , ");
230 my @t = callJava($method, $pat, -$CALIBRATE, 1);
249 my @t = callJava($method, $pat, $iterCount, $NUMPASSES);
[all …]
/external/curl/src/
Dtool_urlglob.c39 URLPattern *pat = &glob->pattern[glob->size]; in glob_fixed() local
40 pat->type = UPTSet; in glob_fixed()
41 pat->content.Set.size = 1; in glob_fixed()
42 pat->content.Set.ptr_s = 0; in glob_fixed()
43 pat->globindex = -1; in glob_fixed()
45 pat->content.Set.elements = malloc(sizeof(char *)); in glob_fixed()
47 if(!pat->content.Set.elements) in glob_fixed()
50 pat->content.Set.elements[0] = malloc(len + 1); in glob_fixed()
51 if(!pat->content.Set.elements[0]) in glob_fixed()
54 memcpy(pat->content.Set.elements[0], fixed, len); in glob_fixed()
[all …]
/external/python/cpython3/Lib/
Dfnmatch.py19 def fnmatch(name, pat): argument
35 pat = os.path.normcase(pat)
36 return fnmatchcase(name, pat)
39 def _compile_pattern(pat): argument
40 if isinstance(pat, bytes):
41 pat_str = str(pat, 'ISO-8859-1')
45 res = translate(pat)
48 def filter(names, pat): argument
51 pat = os.path.normcase(pat)
52 match = _compile_pattern(pat)
[all …]
/external/python/cpython2/Lib/
Dfnmatch.py24 def fnmatch(name, pat): argument
42 pat = os.path.normcase(pat)
43 return fnmatchcase(name, pat)
45 def filter(names, pat): argument
49 pat=os.path.normcase(pat)
51 re_pat = _cache[pat]
53 res = translate(pat)
56 _cache[pat] = re_pat = re.compile(res)
69 def fnmatchcase(name, pat): argument
77 re_pat = _cache[pat]
[all …]
/external/icu/android_icu4j/src/main/tests/android/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 …]
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 …]
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 …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DIntlTestDecimalFormatAPI.java63 String pat = ",##0.0000"; in testJB1871() local
64 DecimalFormat dec = new DecimalFormat(pat); in testJB1871()
69 errln("Fail: " + number + " x \"" + pat + "\" = \"" + in testJB1871()
73 pat = ",##0.0001"; in testJB1871()
74 dec = new DecimalFormat(pat); in testJB1871()
78 errln("Fail: " + number + " x \"" + pat + "\" = \"" + in testJB1871()
83 pat = ",##0.00000000000000000001"; in testJB1871()
84 dec = new DecimalFormat(pat); in testJB1871()
91 errln("Fail: " + bignumber + " x \"" + pat + "\" = \"" + in testJB1871()
114 DecimalFormat pat = null; in TestAPI() local
[all …]
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 …]
DIntlTestDecimalFormatAPIC.java61 DecimalFormat pat = null; in TestAPI() local
63 pat = new DecimalFormat(pattern); in TestAPI()
115 res2 = pat.format(l, res2, pos2); in TestAPI()
131 pat.applyPattern(patt); in TestAPI()
132 double d2 = pat.parse(text, pos).doubleValue(); in TestAPI()
143 final DecimalFormatSymbols syms = pat.getDecimalFormatSymbols(); in TestAPI()
145 if (!pat.getDecimalFormatSymbols().equals(def.getDecimalFormatSymbols())) { in TestAPI()
150 pat.setPositivePrefix("+"); in TestAPI()
151 posPrefix = pat.getPositivePrefix(); in TestAPI()
156 pat.setNegativePrefix("-"); in TestAPI()
[all …]
/external/apache-xml/src/main/java/org/apache/xpath/compiler/
DLexer.java96 void tokenize(String pat) throws javax.xml.transform.TransformerException in tokenize() argument
98 tokenize(pat, null); in tokenize()
109 void tokenize(String pat, Vector targetStrings) in tokenize() argument
113 m_compiler.m_currentPattern = pat; in tokenize()
120 int initTokQueueSize = ((pat.length() < OpMap.MAXTOKENQUEUESIZE) in tokenize()
121 ? pat.length() : OpMap.MAXTOKENQUEUESIZE) * 5; in tokenize()
126 int nChars = pat.length(); in tokenize()
140 char c = pat.charAt(i); in tokenize()
154 posOfNSSep = mapNSTokens(pat, startSubstring, posOfNSSep, i); in tokenize()
158 addToTokenQueue(pat.substring(startSubstring, i)); in tokenize()
[all …]
/external/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 …]
/external/slf4j/slf4j-migrator/src/test/java/org/slf4j/migrator/
DAternativeApproach.java46 Pattern pat = cr2.getPattern(); in test() local
47 Matcher m = pat.matcher(s); in test()
62 Pattern pat = Pattern.compile("(Log)"); in test2() local
64 Matcher m = pat.matcher(s); in test2()
70 m = pat.matcher(s1); in test2()
76 m = pat.matcher(s2); in test2()
80 m = pat.matcher(s3); in test2()
90 Pattern pat = Pattern.compile("LogFactory.getFactory\\(\\).getInstance\\("); in test3() local
92 Matcher m = pat.matcher(s); in test3()
98 pat.matcher(nonMatching); in test3()
[all …]
/external/autotest/client/deps/fakemodem/src/
Dfakemodem.c118 Pattern *pat; in parse_pattern_files() local
119 pat = g_malloc (sizeof (*pat)); in parse_pattern_files()
121 pat->command = g_regex_new (command, in parse_pattern_files()
129 if (pat->command == NULL) { in parse_pattern_files()
139 pat->responsetext = responsetext; in parse_pattern_files()
140 pat->reply = g_match_info_fetch (info, 4); in parse_pattern_files()
141 while (pat->reply[strlen (pat->reply) - 1] == '\\') { in parse_pattern_files()
143 pat->reply[strlen (pat->reply) - 1] = '\0'; in parse_pattern_files()
148 origstr = pat->reply; in parse_pattern_files()
149 pat->reply = g_strjoin ("\r\n", origstr, line, NULL); in parse_pattern_files()
[all …]
/external/python/cpython2/Lib/idlelib/idle_test/
Dtest_searchengine.py186 pat = '[a-z'
189 Equal(self.engine.report_error(pat, msg), None)
194 Equal(self.engine.report_error(pat, msg, 5), None)
214 cls.pat = re.compile('target')
230 pat = self.pat
241 Equal(search(text, pat), ('f', (text, pat, 1, 5, True, False)))
243 Equal(search(text, pat), ('f', (text, pat, 1, 5, False, False)))
246 Equal(search(text, pat), ('b', (text, pat, 1, 5, True, False)))
254 Equal(search(text, pat), ('f', (text, pat, 2, 16, True, False)))
255 Equal(search(text, pat, True), ('f', (text, pat, 2, 10, True, True)))
[all …]
/external/python/cpython3/Lib/idlelib/idle_test/
Dtest_searchengine.py187 pat = '[a-z'
190 Equal(self.engine.report_error(pat, msg), None)
195 Equal(self.engine.report_error(pat, msg, 5), None)
215 cls.pat = re.compile('target')
231 pat = self.pat
242 Equal(search(text, pat), ('f', (text, pat, 1, 5, True, False)))
244 Equal(search(text, pat), ('f', (text, pat, 1, 5, False, False)))
247 Equal(search(text, pat), ('b', (text, pat, 1, 5, True, False)))
255 Equal(search(text, pat), ('f', (text, pat, 2, 16, True, False)))
256 Equal(search(text, pat, True), ('f', (text, pat, 2, 10, True, True)))
[all …]
/external/python/cpython2/Lib/idlelib/
DSearchEngine.py38 def setpat(self, pat): argument
39 self.patvar.set(pat)
58 def setcookedpat(self, pat): argument
62 pat = re.escape(pat)
63 self.setpat(pat)
66 pat = self.getpat()
68 pat = re.escape(pat)
70 pat = r"\b%s\b" % pat
71 return pat
75 pat = self.getpat()
[all …]
/external/python/cpython3/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 …]
/external/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 …]
/external/icu/icu4c/source/test/intltest/
Ddcfmapts.cpp158 DecimalFormat pat(pattern, status); in testAPI() local
183 DecimalFormat copy(pat); in testAPI()
189 if( ! (copy == pat) || copy != pat) { in testAPI()
219 res2 = pat.format(l, res2, pos2); in testAPI()
245 pat.applyPattern(patt, status); in testAPI()
249 pat.parse(text, result1, pos); in testAPI()
256 pat.parse(text, result2, status); in testAPI()
269 const DecimalFormatSymbols *syms = pat.getDecimalFormatSymbols(); in testAPI()
273 if( *(pat.getDecimalFormatSymbols()) != *(def.getDecimalFormatSymbols())) { in testAPI()
278 pat.setPositivePrefix("+"); in testAPI()
[all …]
/external/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"
70 bzip2 -cdfq "$i" | $grep $opt "$pat" | sed "s|^|${j}:|"

12345678910>>...17