Home
last modified time | relevance | path

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

12345678910

/external/linux-tools-perf/util/
Dstring.c188 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/hyphenation/
Dsubstrings.pl26 $pat =~ s/%.*$//g;
31 $pat = $1;
35 $pat =~ s/\d//g;
36 if ($origpat eq $pat) {
40 push @patlist, $pat;
41 $pattab{$pat} = $origpat;
42 $repltab{$pat} = $repl;
43 $replbeg{$pat} = $beg - 1;
44 $repllen{$pat} = $len;
47 $pat = $1;
[all …]
Dsubstrings.c25 const char *pat in find_in() argument
30 int v = strcmp(pat,tab[mid]); in find_in()
123 const char *pat, in expand() argument
130 char c = pat[i]; in expand()
194 char *pat = (char*) malloc(l+1); in main() local
201 if (c<'0' || c>'9') pat[j++]=c; in main()
203 pat[j]=0; in main()
205 pattab_key[patterns] = pat; in main()
215 char *pat = pattab_key[p]; in main() local
216 int patsize = strlen(pat); in main()
[all …]
/external/icu4c/test/intltest/
Ddcfmapts.cpp87 DecimalFormat pat(pattern, status); in testAPI() local
112 DecimalFormat copy(pat); in testAPI()
118 if( ! (copy == pat) || copy != pat) { in testAPI()
148 res2 = pat.format(l, res2, pos2); in testAPI()
174 pat.applyPattern(patt, status); in testAPI()
178 pat.parse(text, result1, pos); in testAPI()
185 pat.parse(text, result2, status); in testAPI()
198 const DecimalFormatSymbols *syms = pat.getDecimalFormatSymbols(); in testAPI()
202 if( *(pat.getDecimalFormatSymbols()) != *(def.getDecimalFormatSymbols())) { in testAPI()
207 pat.setPositivePrefix("+"); in testAPI()
[all …]
Dsdtfmtts.cpp65 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/chromium_org/third_party/icu/source/test/intltest/
Ddcfmapts.cpp81 DecimalFormat pat(pattern, status); in testAPI() local
106 DecimalFormat copy(pat); in testAPI()
112 if( ! (copy == pat) || copy != pat) { in testAPI()
142 res2 = pat.format(l, res2, pos2); in testAPI()
168 pat.applyPattern(patt, status); in testAPI()
172 pat.parse(text, result1, pos); in testAPI()
179 pat.parse(text, result2, status); in testAPI()
192 const DecimalFormatSymbols *syms = pat.getDecimalFormatSymbols(); in testAPI()
196 if( *(pat.getDecimalFormatSymbols()) != *(def.getDecimalFormatSymbols())) { in testAPI()
201 pat.setPositivePrefix("+"); in testAPI()
[all …]
Dsdtfmtts.cpp65 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()
Dmsfmrgts.cpp159 UnicodeString pat; in Test4058973() local
160 pat = fmt->toPattern(pat); in Test4058973()
162 if (pat != exp) { in Test4058973()
165 errln("Got: " + pat); in Test4058973()
534 UnicodeString pat; in Test4114739() local
536 logln("pattern: \"" + mf->toPattern(pat) + "\""); in Test4114739()
564 UnicodeString pat; in Test4113018() local
565 logln("pattern before: \"" + mf->toPattern(pat) + "\""); in Test4113018()
587 UnicodeString pat; in Test4106661() local
588 logln("Formatter Pattern : " + fmt->toPattern(pat)); in Test4106661()
[all …]
/external/icu4c/test/testdata/
DNumberFormatTestCases.txt17 pat: - "#0.####"
19 pat: - "#0.####"
22 pat: - "#0"
28 pat: - -
30 pat: - "#,@@@"
33 pat: - -
39 pat: - -
44 pat: - -
49 pat: - -
54 pat: - -
[all …]
/external/chromium_org/third_party/icu/source/test/testdata/
DNumberFormatTestCases.txt17 pat: - "#0.####"
19 pat: - "#0.####"
22 pat: - "#0"
28 pat: - -
30 pat: - "#,@@@"
33 pat: - -
39 pat: - -
44 pat: - -
49 pat: - -
54 pat: - -
[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/chromium_org/third_party/icu/source/common/
Duset_props.cpp34 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/icu4c/common/
Duset_props.cpp34 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/
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}:|"
/external/chromium_org/third_party/tcmalloc/vendor/src/base/
Dlogging.h197 inline void LogPrintf(int severity, const char* pat, va_list ap) { in LogPrintf() argument
201 perftools_vsnprintf(buf, sizeof(buf)-1, pat, ap); in LogPrintf()
217 #define LOG_PRINTF(severity, pat) do { \ argument
220 va_start(ap, pat); \
221 LogPrintf(severity, pat, ap); \
227 inline void RAW_LOG(int lvl, const char* pat, ...) { LOG_PRINTF(lvl, pat); } in RAW_LOG() argument
228 inline void RAW_VLOG(int lvl, const char* pat, ...) { LOG_PRINTF(lvl, pat); } in RAW_VLOG() argument
229 inline void LOG(int lvl, const char* pat, ...) { LOG_PRINTF(lvl, pat); } in LOG() argument
230 inline void VLOG(int lvl, const char* pat, ...) { LOG_PRINTF(lvl, pat); } in VLOG() argument
231 inline void LOG_IF(int lvl, bool cond, const char* pat, ...) { in LOG_IF() argument
[all …]
/external/llvm/test/Transforms/InstCombine/
Dstrstr-1.ll18 %pat = getelementptr inbounds [1 x i8]* @.str, i32 0, i32 0
19 %ret = call i8* @strstr(i8* %str, i8* %pat)
28 %pat = getelementptr inbounds [2 x i8]* @.str1, i32 0, i32 0
29 %ret = call i8* @strstr(i8* %str, i8* %pat)
39 %pat = getelementptr inbounds [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 …]
Dstrpbrk-1.ll17 %pat = getelementptr [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]* @w, i32 0, i32 0
42 %ret = call i8* @strpbrk(i8* %str, i8* %pat)
51 %pat = getelementptr [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 …]
Dstrspn-1.ll17 %pat = getelementptr [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]* @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)
Dstrcspn-1.ll17 %pat = getelementptr [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]* @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/chromium_org/third_party/tcmalloc/chromium/src/base/
Dlogging.h202 inline void LogPrintf(int severity, const char* pat, va_list ap) { in LogPrintf() argument
206 perftools_vsnprintf(buf, sizeof(buf)-1, pat, ap); in LogPrintf()
247 #define LOG_PRINTF(severity, pat) do { \ argument
250 va_start(ap, pat); \
251 LogPrintf(severity, pat, ap); \
257 inline void RAW_LOG(int lvl, const char* pat, ...) { LOG_PRINTF(lvl, pat); } in RAW_LOG() argument
258 inline void RAW_VLOG(int lvl, const char* pat, ...) { LOG_PRINTF(lvl, pat); } in RAW_VLOG() argument
259 inline void LOG(int lvl, const char* pat, ...) { LOG_PRINTF(lvl, pat); } in LOG() argument
260 inline void VLOG(int lvl, const char* pat, ...) { LOG_PRINTF(lvl, pat); } in VLOG() argument
261 inline void LOG_IF(int lvl, bool cond, const char* pat, ...) { in LOG_IF() argument
[all …]
/external/apache-xml/src/main/java/org/apache/xpath/patterns/
DStepPattern.java792 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/icu4c/test/cintltst/
Dusettest.c258 char *pat; in expectContainment() local
268 pat=aescstrdup(ustr, length); in expectContainment()
285 log_verbose("Ok: %s %s \"%s\"\n", pat, in expectContainment()
289 log_data_err("FAIL: %s %s \"%s\" (Are you missing data?)\n", pat, in expectContainment()
302 log_verbose("Ok: %s %s '%c'\n", pat, in expectContainment()
306 log_data_err("FAIL: %s %s '%c' (Are you missing data?)\n", pat, in expectContainment()
317 log_verbose("Ok: %s %s U+%04X-U+%04X\n", pat, in expectContainment()
321 log_data_err("FAIL: %s %s U+%04X-U+%04X (Are you missing data?)\n", pat, in expectContainment()
335 log_verbose("Ok: %s %s U+%04X-U+%04X\n", pat, in expectContainment()
339 log_data_err("FAIL: %s %s U+%04X-U+%04X (Are you missing data?)\n", pat, in expectContainment()
[all …]
/external/chromium_org/third_party/icu/source/test/cintltst/
Dusettest.c258 char *pat; in expectContainment() local
268 pat=aescstrdup(ustr, length); in expectContainment()
285 log_verbose("Ok: %s %s \"%s\"\n", pat, in expectContainment()
289 log_data_err("FAIL: %s %s \"%s\" (Are you missing data?)\n", pat, in expectContainment()
302 log_verbose("Ok: %s %s '%c'\n", pat, in expectContainment()
306 log_data_err("FAIL: %s %s '%c' (Are you missing data?)\n", pat, in expectContainment()
317 log_verbose("Ok: %s %s U+%04X-U+%04X\n", pat, in expectContainment()
321 log_data_err("FAIL: %s %s U+%04X-U+%04X (Are you missing data?)\n", pat, in expectContainment()
335 log_verbose("Ok: %s %s U+%04X-U+%04X\n", pat, in expectContainment()
339 log_data_err("FAIL: %s %s U+%04X-U+%04X (Are you missing data?)\n", pat, in expectContainment()
[all …]
/external/valgrind/main/none/tests/s390x/
Dcu21_1.c212 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()
Dcu21.c212 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()

12345678910