Home
last modified time | relevance | path

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

123456

/external/apache-harmony/regex/src/test/java/org/apache/harmony/tests/java/util/regex/
DPatternTest.java68 Pattern pat = Pattern.compile("x"); in testSplitCharSequenceint() local
69 s = pat.split("zxx:zzz:zxx", 10); in testSplitCharSequenceint()
71 s = pat.split("zxx:zzz:zxx", 3); in testSplitCharSequenceint()
73 s = pat.split("zxx:zzz:zxx", -1); in testSplitCharSequenceint()
75 s = pat.split("zxx:zzz:zxx", 0); in testSplitCharSequenceint()
79 pat = Pattern.compile("b"); in testSplitCharSequenceint()
80 s = pat.split("abccbadfebb", -1); in testSplitCharSequenceint()
82 s = pat.split("", -1); in testSplitCharSequenceint()
84 pat = Pattern.compile(""); in testSplitCharSequenceint()
85 s = pat.split("", -1); in testSplitCharSequenceint()
[all …]
DMatcherTest.java80 Pattern pat = Pattern.compile("XX"); in testAppendReplacement() local
81 Matcher m = pat.matcher("Today is XX-XX-XX ..."); in testAppendReplacement()
106 Pattern pat = Pattern.compile(pattern); in testReplaceAll() local
107 Matcher mat = pat.matcher(input); in testReplaceAll()
144 Pattern pat = Pattern.compile(pattern); in testReplaceFirst() local
145 Matcher mat = pat.matcher(input); in testReplaceFirst()
241 Pattern pat = Pattern.compile("((a)|(b))++c"); in testGroupPossessive() local
242 Matcher mat = pat.matcher("aac"); in testGroupPossessive()
285 Pattern pat = Pattern.compile(testPatterns[i]); in testMatchesMisc() local
287 Matcher mat = pat.matcher(posSeq[i][j]); in testMatchesMisc()
[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.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 …]
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 …]
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()
Dnumfmtst.h202 void expectPad(DecimalFormat& fmt, const UnicodeString& pat,
205 void expectPad(DecimalFormat& fmt, const char *pat, in expectPad() argument
207 expectPad(fmt, UnicodeString(pat, ""), pos, width, pad); in expectPad()
210 void expectPad(DecimalFormat& fmt, const UnicodeString& pat,
213 void expectPad(DecimalFormat& fmt, const char *pat, in expectPad() argument
215 expectPad(fmt, UnicodeString(pat, ""), pos, width, pad); in expectPad()
224 void expectPad(DecimalFormat& fmt, const UnicodeString& pat,
227 void expectPad(DecimalFormat& fmt, const char *pat, in expectPad() argument
229 expectPad(fmt, pat, pos, 0, (UChar)0); in expectPad()
/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/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/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/webkit/Source/JavaScriptCore/tests/mozilla/ecma_2/Expressions/
Dinstanceof-002.js73 var pat = new Engineer() variable
78 pat.__proto__ == Engineer.prototype );
83 pat.__proto__.__proto__ == WorkerBee.prototype );
88 pat.__proto__.__proto__.__proto__ == Employee.prototype );
93pat.__proto__.__proto__.__proto__.__proto__ == Object.prototype );
98 pat.__proto__.__proto__.__proto__.__proto__.__proto__ == null );
103 pat instanceof Engineer );
108 pat instanceof WorkerBee );
113 pat instanceof Employee );
118 pat instanceof Object );
[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/webkit/Source/JavaScriptCore/tests/mozilla/js1_3/inherit/
Dproto_10.js100 var pat = new Engineer() variable
105 pat.__proto__ == Engineer.prototype );
110 pat.__proto__.__proto__ == WorkerBee.prototype );
115 pat.__proto__.__proto__.__proto__ == Employee.prototype );
120pat.__proto__.__proto__.__proto__.__proto__ == Object.prototype );
125 pat.__proto__.__proto__.__proto__.__proto__.__proto__ == null );
131 InstanceOf( pat, Engineer ) );
136 InstanceOf( pat, WorkerBee ) );
141 InstanceOf( pat, Employee ) );
146 InstanceOf( pat, Object ) );
[all …]
Dproto_7.js81 var pat = new Engineer( "Toonces, Pat", variable
93 pat.name );
98 pat.dept );
103 pat.projects.length );
108 pat.projects[0] );
113 pat.projects[1] );
118 pat.machine );
123 pat.specialty );
Dproto_8.js79 var pat = new Engineer( "Toonces, Pat", variable
91 pat.name );
96 pat.dept );
101 pat.projects.length );
106 pat.projects[0] );
111 pat.projects[1] );
116 pat.machine );
121 pat.specialty );
Dproto_6.js94 var pat = new Engineer( "Toonces, Pat", variable
110 pat.name );
115 pat.dept );
120 pat.projects.length );
125 pat.projects[0] );
130 pat.projects[1] );
135 pat.machine );
Dproto_5.js91 var pat = new Engineer( "indy" ); variable
98 pat.name );
103 pat.dept );
108 pat.projects.length );
113 pat.machine );
118 pat.__proto__ == Engineer.prototype );
Dproto_9.js72 var pat = new WorkerBee() variable
84 pat.name );
89 pat.dept );
94 pat.projects.getClass() );
99 pat.projects.length );
/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/libpng/contrib/gregbook/
Drpng2-x.c193 static int pat = 6; /* must be less than num_bgpat */ variable
406 pat = atoi(*argv); in main()
407 if (pat >= 0 && pat < num_bgpat) { in main()
661 if (++pat >= num_bgpat) in main()
662 pat = 0; in main()
1081 int invert_gradient2 = (bg[pat].type & 0x08); in rpng2_x_load_bg_image()
1101 bgscale = (pat == 0)? 8 : bgscale_default; in rpng2_x_load_bg_image()
1109 if ((bg[pat].type & 0x07) == 0) { in rpng2_x_load_bg_image()
1110 uch r1_min = rgb[bg[pat].rgb1_min].r; in rpng2_x_load_bg_image()
1111 uch g1_min = rgb[bg[pat].rgb1_min].g; in rpng2_x_load_bg_image()
[all …]
Drpng2-win.c162 static int pat = 6; /* must be less than num_bgpat */ variable
388 pat = atoi(*argv) - 1; in WinMain()
389 if (pat < 0 || pat >= num_bgpat) in WinMain()
816 int invert_gradient2 = (bg[pat].type & 0x08); in rpng2_win_load_bg_image()
839 if ((bg[pat].type & 0x07) == 0) { in rpng2_win_load_bg_image()
840 uch r1_min = rgb[bg[pat].rgb1_min].r; in rpng2_win_load_bg_image()
841 uch g1_min = rgb[bg[pat].rgb1_min].g; in rpng2_win_load_bg_image()
842 uch b1_min = rgb[bg[pat].rgb1_min].b; in rpng2_win_load_bg_image()
843 uch r2_min = rgb[bg[pat].rgb2_min].r; in rpng2_win_load_bg_image()
844 uch g2_min = rgb[bg[pat].rgb2_min].g; in rpng2_win_load_bg_image()
[all …]
/external/pcre/
Dpcrecpp.h491 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()
/external/valgrind/main/callgrind/
Dfn.c52 unsigned char code[], struct pattern* pat) in check_code() argument
60 CLG_ASSERT((pat->chunk[0].start == 0) && (pat->chunk[0].len >2)); in check_code()
63 obj->name, pat->name, pat->chunk[0].len, code[0], code[1], code[2]); in check_code()
65 end = obj->start + obj->size - pat->len; in check_code()
68 found = (VG_(memcmp)( (void*)addr, code, pat->chunk[0].len) == 0); in check_code()
73 start = pat->chunk[chunk].start; in check_code()
74 len = pat->chunk[chunk].len; in check_code()
95 pat->name, obj->name + obj->last_slash_pos, in check_code()
96 addr - obj->start, addr, pat->len); in check_code()
99 runtime_resolve_length = pat->len; in check_code()
[all …]

123456