/external/linux-tools-perf/src/tools/perf/util/ |
D | string.c | 188 static bool __match_charclass(const char *pat, char c, const char **npat) in __match_charclass() argument 192 if (*pat == '!') { in __match_charclass() 194 pat++; in __match_charclass() 196 if (*pat++ == c) /* First character is special */ in __match_charclass() 199 while (*pat && *pat != ']') { /* Matching */ in __match_charclass() 200 if (*pat == '-' && *(pat + 1) != ']') { /* Range */ in __match_charclass() 201 if (*(pat - 1) <= c && c <= *(pat + 1)) in __match_charclass() 203 if (*(pat - 1) > *(pat + 1)) in __match_charclass() 205 pat += 2; in __match_charclass() 206 } else if (*pat++ == c) in __match_charclass() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | IntlTestDecimalFormatAPI.java | 58 String pat = ",##0.0000"; in testJB1871() local 59 DecimalFormat dec = new DecimalFormat(pat); in testJB1871() 65 errln("Fail: " + number + " x \"" + pat + "\" = \"" + in testJB1871() 69 pat = ",##0.0001"; in testJB1871() 70 dec = new DecimalFormat(pat); in testJB1871() 74 errln("Fail: " + number + " x \"" + pat + "\" = \"" + in testJB1871() 79 pat = ",##0.00000000000000000001"; in testJB1871() 80 dec = new DecimalFormat(pat); in testJB1871() 87 errln("Fail: " + bignumber + " x \"" + pat + "\" = \"" + in testJB1871() 109 DecimalFormat pat = null; in TestAPI() local [all …]
|
D | NumberFormatTestCases.txt | 17 pat: - "#0.####" 19 pat: - "#0.####" 22 pat: - "#0" 28 pat: - - 30 pat: - "#,@@@" 33 pat: - - 39 pat: - - 44 pat: - - 49 pat: - - 54 pat: - - [all …]
|
D | IntlTestDecimalFormatAPIC.java | 51 DecimalFormat pat = null; in TestAPI() local 53 pat = new DecimalFormat(pattern); in TestAPI() 93 res2 = pat.format(l, res2, pos2); in TestAPI() 109 pat.applyPattern(patt); in TestAPI() 110 double d2 = pat.parse(text, pos).doubleValue(); in TestAPI() 121 final DecimalFormatSymbols syms = pat.getDecimalFormatSymbols(); in TestAPI() 123 if (!pat.getDecimalFormatSymbols().equals(def.getDecimalFormatSymbols())) { in TestAPI() 128 pat.setPositivePrefix("+"); in TestAPI() 129 posPrefix = pat.getPositivePrefix(); in TestAPI() 136 pat.setNegativePrefix("-"); in TestAPI() [all …]
|
D | IntlTestSimpleDateFormatAPI.java | 54 SimpleDateFormat pat = new SimpleDateFormat(pattern); in TestAPI() local 111 final DateFormatSymbols syms = pat.getDateFormatSymbols(); in TestAPI() 114 if( ! pat.getDateFormatSymbols().equals(def.getDateFormatSymbols()) ) { in TestAPI() 141 pat.applyPattern(p1); in TestAPI() 143 String s2 = pat.toPattern(); in TestAPI() 150 pat.applyLocalizedPattern(p1); in TestAPI() 151 String s3 = pat.toLocalizedPattern(); in TestAPI() 162 pat.applyPattern(p2); in TestAPI() 163 Date dt = pat.parse("2007W014", new ParsePosition(0)); in TestAPI()
|
/external/icu/icu4c/source/test/testdata/ |
D | NumberFormatTestCases.txt | 17 pat: - "#0.####" 19 pat: - "#0.####" 22 pat: - "#0" 28 pat: - - 30 pat: - "#,@@@" 33 pat: - - 39 pat: - - 44 pat: - - 49 pat: - - 54 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/icu/icu4c/source/test/intltest/ |
D | dcfmapts.cpp | 120 DecimalFormat pat(pattern, status); in testAPI() local 145 DecimalFormat copy(pat); in testAPI() 151 if( ! (copy == pat) || copy != pat) { in testAPI() 181 res2 = pat.format(l, res2, pos2); in testAPI() 207 pat.applyPattern(patt, status); in testAPI() 211 pat.parse(text, result1, pos); in testAPI() 218 pat.parse(text, result2, status); in testAPI() 231 const DecimalFormatSymbols *syms = pat.getDecimalFormatSymbols(); in testAPI() 235 if( *(pat.getDecimalFormatSymbols()) != *(def.getDecimalFormatSymbols())) { in testAPI() 240 pat.setPositivePrefix("+"); in testAPI() [all …]
|
D | sdtfmtts.cpp | 65 SimpleDateFormat pat(pattern, status); in testAPI() local 116 SimpleDateFormat copy(pat); in testAPI() 122 if( ! (copy == pat) || copy != pat) { in testAPI() 178 const DateFormatSymbols *syms = pat.getDateFormatSymbols(); in testAPI() 189 if( *(pat.getDateFormatSymbols()) != *(def.getDateFormatSymbols())) { in testAPI() 194 UDate startDate = pat.get2DigitYearStart(status); in testAPI() 219 pat.applyPattern(p1); in testAPI() 222 s2 = pat.toPattern(s2); in testAPI() 230 pat.applyLocalizedPattern(p1, status); in testAPI() 236 s3 = pat.toLocalizedPattern(s3, status); in testAPI()
|
/external/icu/icu4c/source/common/ |
D | uset_props.cpp | 34 UnicodeString pat(patternLength==-1, pattern, patternLength); in uset_openPattern() local 35 UnicodeSet* set = new UnicodeSet(pat, *ec); in uset_openPattern() 54 UnicodeString pat(patternLength==-1, pattern, patternLength); in uset_openPatternOptions() local 55 UnicodeSet* set = new UnicodeSet(pat, options, NULL, *ec); in uset_openPatternOptions() 90 UnicodeString pat(pattern, patternLength); in uset_applyPattern() local 94 ((UnicodeSet*) set)->applyPattern(pat, pos, options, NULL, *status); in uset_applyPattern() 121 UnicodeString pat(pattern, patternLength); in uset_resemblesPattern() local 123 return ((pos+1) < pat.length() && in uset_resemblesPattern() 124 pat.charAt(pos) == (UChar)91/*[*/) || in uset_resemblesPattern() 125 UnicodeSet::resemblesPattern(pat, pos); in uset_resemblesPattern() [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/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()
|
/external/libcxx/test/std/localization/locale.categories/category.time/locale.time.put.byname/ |
D | put1.pass.cpp | 63 std::string pat("Today is %A which is abbreviated %a."); in main() local 65 pat.data(), pat.data() + pat.size()); in main() 71 std::string pat("Today is %A which is abbreviated %a."); in main() local 73 pat.data(), pat.data() + pat.size()); in main()
|
/external/llvm/test/Transforms/InstCombine/ |
D | strstr-1.ll | 18 %pat = getelementptr inbounds [1 x i8], [1 x i8]* @.str, i32 0, i32 0 19 %ret = call i8* @strstr(i8* %str, i8* %pat) 28 %pat = getelementptr inbounds [2 x i8], [2 x i8]* @.str1, i32 0, i32 0 29 %ret = call i8* @strstr(i8* %str, i8* %pat) 39 %pat = getelementptr inbounds [4 x i8], [4 x i8]* @.str3, i32 0, i32 0 40 %ret = call i8* @strstr(i8* %str, i8* %pat) 54 ; Check strstr(str, pat) == str -> strncmp(str, pat, strlen(str)) == 0. 56 define i1 @test_simplify5(i8* %str, i8* %pat) { 58 %ret = call i8* @strstr(i8* %str, i8* %pat) 61 ; CHECK: [[LEN:%[a-z]+]] = call {{i[0-9]+}} @strlen(i8* %pat) [all …]
|
D | strpbrk-1.ll | 17 %pat = getelementptr [1 x i8], [1 x i8]* @null, i32 0, i32 0 19 %ret = call i8* @strpbrk(i8* %str, i8* %pat) 26 define i8* @test_simplify2(i8* %pat) { 30 %ret = call i8* @strpbrk(i8* %str, i8* %pat) 40 %pat = getelementptr [2 x i8], [2 x i8]* @w, i32 0, i32 0 42 %ret = call i8* @strpbrk(i8* %str, i8* %pat) 51 %pat = getelementptr [2 x i8], [2 x i8]* @w, i32 0, i32 0 53 %ret = call i8* @strpbrk(i8* %str, i8* %pat) 61 define i8* @test_no_simplify1(i8* %str, i8* %pat) { 64 %ret = call i8* @strpbrk(i8* %str, i8* %pat) [all …]
|
D | strspn-1.ll | 17 %pat = getelementptr [1 x i8], [1 x i8]* @null, i32 0, i32 0 19 %ret = call i64 @strspn(i8* %str, i8* %pat) 26 define i64 @test_simplify2(i8* %pat) { 30 %ret = call i64 @strspn(i8* %str, i8* %pat) 40 %pat = getelementptr [4 x i8], [4 x i8]* @abc, i32 0, i32 0 42 %ret = call i64 @strspn(i8* %str, i8* %pat) 49 define i64 @test_no_simplify1(i8* %str, i8* %pat) { 52 %ret = call i64 @strspn(i8* %str, i8* %pat) 53 ; CHECK-NEXT: %ret = call i64 @strspn(i8* %str, i8* %pat)
|
D | strcspn-1.ll | 17 %pat = getelementptr [1 x i8], [1 x i8]* @null, i32 0, i32 0 19 %ret = call i64 @strcspn(i8* %str, i8* %pat) 27 define i64 @test_simplify2(i8* %pat) { 31 %ret = call i64 @strcspn(i8* %str, i8* %pat) 41 %pat = getelementptr [4 x i8], [4 x i8]* @abc, i32 0, i32 0 43 %ret = call i64 @strcspn(i8* %str, i8* %pat) 50 define i64 @test_no_simplify1(i8* %str, i8* %pat) { 53 %ret = call i64 @strcspn(i8* %str, i8* %pat) 54 ; CHECK-NEXT: %ret = call i64 @strcspn(i8* %str, i8* %pat)
|
/external/apache-xml/src/main/java/org/apache/xpath/patterns/ |
D | StepPattern.java | 792 for (StepPattern pat = this; pat != null; pat = pat.m_relativePathPattern) in toString() 794 if (pat != this) in toString() 797 buf.append(Axis.getNames(pat.m_axis)); in toString() 800 if (0x000005000 == pat.m_whatToShow) in toString() 804 else if (DTMFilter.SHOW_BYFUNCTION == pat.m_whatToShow) in toString() 808 else if (DTMFilter.SHOW_ALL == pat.m_whatToShow) in toString() 812 else if (DTMFilter.SHOW_TEXT == pat.m_whatToShow) in toString() 816 else if (DTMFilter.SHOW_PROCESSING_INSTRUCTION == pat.m_whatToShow) in toString() 820 if (null != pat.m_name) in toString() 822 buf.append(pat.m_name); in toString() [all …]
|
/external/icu/icu4c/source/test/cintltst/ |
D | usettest.c | 257 char *pat; in expectContainment() local 267 pat=aescstrdup(ustr, length); in expectContainment() 284 log_verbose("Ok: %s %s \"%s\"\n", pat, in expectContainment() 288 log_data_err("FAIL: %s %s \"%s\" (Are you missing data?)\n", pat, in expectContainment() 301 log_verbose("Ok: %s %s '%c'\n", pat, in expectContainment() 305 log_data_err("FAIL: %s %s '%c' (Are you missing data?)\n", pat, in expectContainment() 316 log_verbose("Ok: %s %s U+%04X-U+%04X\n", pat, in expectContainment() 320 log_data_err("FAIL: %s %s U+%04X-U+%04X (Are you missing data?)\n", pat, in expectContainment() 334 log_verbose("Ok: %s %s U+%04X-U+%04X\n", pat, in expectContainment() 338 log_data_err("FAIL: %s %s U+%04X-U+%04X (Are you missing data?)\n", pat, in expectContainment() [all …]
|
/external/libpng/contrib/gregbook/ |
D | rpng2-x.c | 194 static int pat = 6; /* must be less than num_bgpat */ variable 407 pat = atoi(*argv); in main() 408 if (pat >= 0 && pat < num_bgpat) { in main() 640 if (++pat >= num_bgpat) in main() 641 pat = 0; in main() 1061 int invert_gradient2 = (bg[pat].type & 0x08); in rpng2_x_load_bg_image() 1081 bgscale = (pat == 0)? 8 : bgscale_default; in rpng2_x_load_bg_image() 1089 if ((bg[pat].type & 0x07) == 0) { in rpng2_x_load_bg_image() 1090 uch r1_min = rgb[bg[pat].rgb1_min].r; in rpng2_x_load_bg_image() 1091 uch g1_min = rgb[bg[pat].rgb1_min].g; in rpng2_x_load_bg_image() [all …]
|
D | rpng2-win.c | 189 static int pat = 6; /* must be less than num_bgpat */ variable 415 pat = atoi(*argv) - 1; in WinMain() 416 if (pat < 0 || pat >= num_bgpat) in WinMain() 839 int invert_gradient2 = (bg[pat].type & 0x08); in rpng2_win_load_bg_image() 862 if ((bg[pat].type & 0x07) == 0) { in rpng2_win_load_bg_image() 863 uch r1_min = rgb[bg[pat].rgb1_min].r; in rpng2_win_load_bg_image() 864 uch g1_min = rgb[bg[pat].rgb1_min].g; in rpng2_win_load_bg_image() 865 uch b1_min = rgb[bg[pat].rgb1_min].b; in rpng2_win_load_bg_image() 866 uch r2_min = rgb[bg[pat].rgb2_min].r; in rpng2_win_load_bg_image() 867 uch g2_min = rgb[bg[pat].rgb2_min].g; in rpng2_win_load_bg_image() [all …]
|
/external/valgrind/none/tests/s390x/ |
D | cu21.c | 212 uint16_t pat[2]; in main() local 216 pat[0] = 0x10; in main() 217 write_and_check(pat, 2, 1); in main() 221 pat[0] = 0x8f; in main() 222 write_and_check(pat, 2, 2); in main() 226 pat[0] = 0x842; in main() 227 write_and_check(pat, 2, 3); in main() 231 pat[0] = 0xd842; in main() 232 pat[1] = 0xdc42; in main() 233 write_and_check(pat, 2, 4); in main()
|
D | cu21_1.c | 212 uint16_t pat[2]; in main() local 216 pat[0] = 0x10; in main() 217 write_and_check(pat, 2, 1); in main() 221 pat[0] = 0x8f; in main() 222 write_and_check(pat, 2, 2); in main() 226 pat[0] = 0x842; in main() 227 write_and_check(pat, 2, 3); in main() 231 pat[0] = 0xd842; in main() 232 pat[1] = 0xdc42; in main() 233 write_and_check(pat, 2, 4); in main()
|
/external/pcre/dist/ |
D | pcrecpp.h | 491 RE(const string& pat) { Init(pat, NULL); } in RE() argument 492 RE(const string& pat, const RE_Options& option) { Init(pat, &option); } in RE() argument 493 RE(const char* pat) { Init(pat, NULL); } in RE() argument 494 RE(const char* pat, const RE_Options& option) { Init(pat, &option); } in RE() argument 495 RE(const unsigned char* pat) { in RE() argument 496 Init(reinterpret_cast<const char*>(pat), NULL); in RE() 498 RE(const unsigned char* pat, const RE_Options& option) { in RE() argument 499 Init(reinterpret_cast<const char*>(pat), &option); in RE()
|