/external/icu/icu4j/perf-tests/ |
D | ucharacterperf_r.pl | 39 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 …]
|
D | decimalformatperf.pl | 100 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 …]
|
D | dateformatperf.pl | 105 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 …]
|
D | converterperf.pl | 118 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 …]
|
D | normperf.pl | 154 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 …]
|
/external/curl/src/ |
D | tool_urlglob.c | 41 URLPattern *pat = &glob->pattern[glob->size]; in glob_fixed() local 42 pat->type = UPTSet; in glob_fixed() 43 pat->content.Set.size = 1; in glob_fixed() 44 pat->content.Set.ptr_s = 0; in glob_fixed() 45 pat->globindex = -1; in glob_fixed() 47 pat->content.Set.elements = malloc(sizeof(char *)); in glob_fixed() 49 if(!pat->content.Set.elements) in glob_fixed() 52 pat->content.Set.elements[0] = malloc(len+1); in glob_fixed() 53 if(!pat->content.Set.elements[0]) in glob_fixed() 56 memcpy(pat->content.Set.elements[0], fixed, len); in glob_fixed() [all …]
|
/external/python/cpython2/Lib/ |
D | fnmatch.py | 24 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/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | IntlTestDecimalFormatAPI.java | 59 String pat = ",##0.0000"; in testJB1871() local 60 DecimalFormat dec = new DecimalFormat(pat); in testJB1871() 66 errln("Fail: " + number + " x \"" + pat + "\" = \"" + in testJB1871() 70 pat = ",##0.0001"; in testJB1871() 71 dec = new DecimalFormat(pat); in testJB1871() 75 errln("Fail: " + number + " x \"" + pat + "\" = \"" + in testJB1871() 80 pat = ",##0.00000000000000000001"; in testJB1871() 81 dec = new DecimalFormat(pat); in testJB1871() 88 errln("Fail: " + bignumber + " x \"" + pat + "\" = \"" + in testJB1871() 111 DecimalFormat pat = null; in TestAPI() local [all …]
|
D | NumberFormatTestCases.txt | 21 pat: - "#0.####" 23 pat: - "#0.####" 26 pat: - "#0" 32 pat: - - 34 pat: - "#,@@@" 37 pat: - - 43 pat: - - 48 pat: - - 53 pat: - - 58 pat: - - [all …]
|
D | IntlTestDecimalFormatAPIC.java | 57 DecimalFormat pat = null; in TestAPI() local 59 pat = new DecimalFormat(pattern); in TestAPI() 111 res2 = pat.format(l, res2, pos2); in TestAPI() 127 pat.applyPattern(patt); in TestAPI() 128 double d2 = pat.parse(text, pos).doubleValue(); in TestAPI() 139 final DecimalFormatSymbols syms = pat.getDecimalFormatSymbols(); in TestAPI() 141 if (!pat.getDecimalFormatSymbols().equals(def.getDecimalFormatSymbols())) { in TestAPI() 146 pat.setPositivePrefix("+"); in TestAPI() 147 posPrefix = pat.getPositivePrefix(); in TestAPI() 154 pat.setNegativePrefix("-"); in TestAPI() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | IntlTestDecimalFormatAPI.java | 60 String pat = ",##0.0000"; in testJB1871() local 61 DecimalFormat dec = new DecimalFormat(pat); in testJB1871() 67 errln("Fail: " + number + " x \"" + pat + "\" = \"" + in testJB1871() 71 pat = ",##0.0001"; in testJB1871() 72 dec = new DecimalFormat(pat); in testJB1871() 76 errln("Fail: " + number + " x \"" + pat + "\" = \"" + in testJB1871() 81 pat = ",##0.00000000000000000001"; in testJB1871() 82 dec = new DecimalFormat(pat); in testJB1871() 89 errln("Fail: " + bignumber + " x \"" + pat + "\" = \"" + in testJB1871() 112 DecimalFormat pat = null; in TestAPI() local [all …]
|
D | NumberFormatTestCases.txt | 21 pat: - "#0.####" 23 pat: - "#0.####" 26 pat: - "#0" 32 pat: - - 34 pat: - "#,@@@" 37 pat: - - 43 pat: - - 48 pat: - - 53 pat: - - 58 pat: - - [all …]
|
D | IntlTestDecimalFormatAPIC.java | 58 DecimalFormat pat = null; in TestAPI() local 60 pat = new DecimalFormat(pattern); in TestAPI() 112 res2 = pat.format(l, res2, pos2); in TestAPI() 128 pat.applyPattern(patt); in TestAPI() 129 double d2 = pat.parse(text, pos).doubleValue(); in TestAPI() 140 final DecimalFormatSymbols syms = pat.getDecimalFormatSymbols(); in TestAPI() 142 if (!pat.getDecimalFormatSymbols().equals(def.getDecimalFormatSymbols())) { in TestAPI() 147 pat.setPositivePrefix("+"); in TestAPI() 148 posPrefix = pat.getPositivePrefix(); in TestAPI() 155 pat.setNegativePrefix("-"); in TestAPI() [all …]
|
/external/icu/icu4c/source/test/testdata/ |
D | NumberFormatTestCases.txt | 19 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/ |
D | AternativeApproach.java | 46 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/apache-xml/src/main/java/org/apache/xpath/compiler/ |
D | Lexer.java | 96 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/autotest/client/deps/fakemodem/src/ |
D | fakemodem.c | 118 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/ |
D | test_searchengine.py | 186 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 …]
|
D | test_grep.py | 51 def report(self, pat): argument 52 grep.engine._pat = pat 54 grep.grep_it(re.compile(pat), __file__) 60 pat = 'xyz*'*7 61 lines = self.report(pat) 63 self.assertIn(pat, lines[0]) 68 pat = '""" !Changing this line will break Test_findfile.test_found!' 69 lines = self.report(pat) 71 self.assertIn(pat, lines[0])
|
/external/python/cpython2/Lib/idlelib/ |
D | SearchEngine.py | 38 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/icu/icu4c/source/common/ |
D | uset_props.cpp | 36 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/ |
D | dcfmapts.cpp | 126 DecimalFormat pat(pattern, status); in testAPI() local 151 DecimalFormat copy(pat); in testAPI() 157 if( ! (copy == pat) || copy != pat) { in testAPI() 187 res2 = pat.format(l, res2, pos2); in testAPI() 213 pat.applyPattern(patt, status); in testAPI() 217 pat.parse(text, result1, pos); in testAPI() 224 pat.parse(text, result2, status); in testAPI() 237 const DecimalFormatSymbols *syms = pat.getDecimalFormatSymbols(); in testAPI() 241 if( *(pat.getDecimalFormatSymbols()) != *(def.getDecimalFormatSymbols())) { in testAPI() 246 pat.setPositivePrefix("+"); in testAPI() [all …]
|
/external/bzip2/ |
D | bzgrep | 17 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}:|"
|
/external/ltp/testcases/kernel/fs/doio/ |
D | pattern.c | 40 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()
|
/external/libcxx/test/std/localization/locale.categories/category.time/locale.time.put/locale.time.put.members/ |
D | put1.pass.cpp | 48 std::string pat("Today is %A which is abbreviated %a."); in main() local 50 pat.data(), pat.data() + pat.size()); in main() 55 std::string pat("The number of the month is %Om."); in main() local 57 pat.data(), pat.data() + pat.size()); in main()
|