/libcore/luni/src/main/java/java/util/regex/ |
PatternSyntaxException.java | 24 * {@link Pattern}. Might include a detailed description, the original regular 27 * @see Pattern#compile(String) 28 * @see Pattern#compile(java.lang.String,int) 44 private String pattern; field in class:PatternSyntaxException 53 * Creates a new PatternSyntaxException for a given message, pattern, and 59 * @param pattern 66 public PatternSyntaxException(String description, String pattern, int index) { 68 this.pattern = pattern; 79 return pattern; [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_3/RegExp/ |
octal-001.js | 48 var pattern = ''; variable 59 pattern = /\240/; 61 actualmatch = string.match(pattern); 71 pattern = /ab\052c/; 73 actualmatch = string.match(pattern); 78 pattern = /ab\052*c/; 80 actualmatch = string.match(pattern); 85 pattern = /ab(\052)+c/; 87 actualmatch = string.match(pattern); 92 pattern = /ab((\052)+)c/ [all...] |
regress-209919.js | 49 var pattern = ''; variable 72 pattern = /(a|b*)*/; 73 actualmatch = string.match(pattern); 85 pattern = /(a|b*){5,}/; 86 actualmatch = string.match(pattern); 100 pattern = /(b*)*/; 101 actualmatch = string.match(pattern); 113 pattern = /(b*)+/; 114 actualmatch = string.match(pattern); 122 pattern = /^\-?(\d{1,}|\.{0,})*(\,\d{1,})?$/ [all...] |
regress-67773.js | 35 var pattern = ''; variable 45 pattern = /^(\S+)?( ?)(B+)$/; //single space before second ? character 48 actualmatch = string.match(pattern); 54 actualmatch = string.match(pattern); 60 actualmatch = string.match(pattern); 65 pattern = /^(A+B)+$/; 68 actualmatch = string.match(pattern); 74 actualmatch = string.match(pattern); 80 actualmatch = string.match(pattern); 86 actualmatch = string.match(pattern); [all...] |
octal-002.js | 66 var pattern = ''; variable 89 pattern = /.\011/; 91 actualmatch = string.match(pattern); 103 pattern = /.\0xx/; 105 actualmatch = string.match(pattern); 116 pattern = /.\0xx/; 118 actualmatch = string.match(pattern); 125 * 'a' + '\011' is duplicated in the pattern and test string: 128 pattern = /.\011/; 130 actualmatch = string.match(pattern); [all...] |
regress-57572.js | 35 var pattern = ''; variable 46 pattern = /(\S+)?(.*)/; 48 actualmatch = string.match(pattern); 53 pattern = /(\S+)? ?(.*)/; //single space between the ? characters 55 actualmatch = string.match(pattern); 60 pattern = /(\S+)?(.*)/; 62 actualmatch = string.match(pattern); 67 pattern = /(\S+)? ?(.*)/; //single space between the ? characters 69 actualmatch = string.match(pattern); 76 pattern = /(\S+)?( ?)(.*)/; //single space before second ? characte [all...] |
regress-100199.js | 38 var pattern = ''; variable 48 pattern = /[]/; 51 actualmatch = string.match(pattern); 57 actualmatch = string.match(pattern); 63 actualmatch = string.match(pattern); 69 actualmatch = string.match(pattern); 75 actualmatch = string.match(pattern); 81 actualmatch = string.match(pattern); 87 actualmatch = string.match(pattern); 93 actualmatch = string.match(pattern); [all...] |
regress-105972.js | 34 var pattern = ''; variable 49 * at the simplest match it can find. But the pattern here asks us 54 pattern = /^.*?$/; 56 actualmatch = string.match(pattern); 63 * Unlike the above pattern, we don't have to match till the end of 67 pattern = /^.*?/; 69 actualmatch = string.match(pattern); 84 pattern = /^.*?(:|$)/; 86 actualmatch = string.match(pattern); 103 pattern = /^.*(:|$)/ [all...] |
regress-187133.js | 43 * (?!pattern) 62 var pattern = ''; variable 72 pattern = /(\.(?!com|org)|\/)/; 75 actualmatch = string.match(pattern); 81 actualmatch = string.match(pattern); 87 actualmatch = string.match(pattern); 92 pattern = /(?!a|b)|c/; 95 actualmatch = string.match(pattern); 101 actualmatch = string.match(pattern); 107 actualmatch = string.match(pattern); [all...] |
regress-78156.js | 36 var pattern = ''; variable 52 pattern = /^\d/gm; 53 actualmatch = string.match(pattern); 58 pattern = /\d$/gm; 59 actualmatch = string.match(pattern); 65 pattern = /^\d/gm; 66 actualmatch = string.match(pattern); 71 pattern = /\d$/gm; 72 actualmatch = string.match(pattern); 87 patterns[i] = pattern; [all...] |
/external/webkit/Source/WebKit/mac/Misc/ |
WebUserContentURLPattern.mm | 35 UserContentURLPattern pattern; 51 _private->pattern = UserContentURLPattern(patternString); 66 return _private->pattern.isValid(); 71 return _private->pattern.scheme(); 76 return _private->pattern.host(); 81 return _private->pattern.matchSubdomains(); 86 return _private->pattern.matches(url);
|
/external/openssh/ |
match.c | 6 * Simple pattern matching, with '*' and '?' as wildcards. 49 * Returns true if the given string matches the pattern (which may contain ? 54 match_pattern(const char *s, const char *pattern) 57 /* If at end of pattern, accept if also at end of string. */ 58 if (!*pattern) 61 if (*pattern == '*') { 63 pattern++; 65 /* If at end of pattern, accept immediately. */ 66 if (!*pattern) 69 /* If next character in pattern is known, optimize. * [all...] |
/external/apache-harmony/regex/src/test/java/org/apache/harmony/tests/java/util/regex/ |
ReplaceTest.java | 20 import java.util.regex.Pattern; 29 String target, pattern, repl; local 32 pattern = "fo[^o]"; 35 Pattern p = Pattern.compile(pattern); 43 String target, pattern, repl, s; local 44 Pattern p = null; 48 pattern = "\\[([0-9]+)\\]([a-z]+)"; 51 p = Pattern.compile(pattern) 76 String target, pattern, repl, s; local [all...] |
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
ReplaceTest.java | 20 import java.util.regex.Pattern; 26 String target, pattern, repl; local 29 pattern = "fo[^o]"; 32 Pattern p = Pattern.compile(pattern); 40 String target, pattern, repl, s; local 41 Pattern p = null; 45 pattern = "\\[([0-9]+)\\]([a-z]+)"; 48 p = Pattern.compile(pattern) 71 String target, pattern, repl, s; local [all...] |
/external/chromium/chrome/common/extensions/ |
extension_extent.cc | 29 void ExtensionExtent::AddPattern(const URLPattern& pattern) { 30 patterns_.push_back(pattern); 38 for (PatternList::const_iterator pattern = patterns_.begin(); 39 pattern != patterns_.end(); ++pattern) { 40 if (pattern->MatchesUrl(url)) 49 // least one pattern in each of the extents.
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_2/RegExp/ |
unicode-001.js | 11 var TITLE = "new RegExp( pattern, flags )"; 30 regexp, str_regexp, pattern, str_pattern, length, index, matches_array ) { 35 regexp.exec(pattern).length ); 40 regexp.exec(pattern).index ); 44 pattern, 45 regexp.exec(pattern).input ); 51 regexp.exec(pattern)[matches] );
|
hex-001.js | 29 regexp, str_regexp, pattern, str_pattern, length, index, matches_array ) { 33 if ( regexp.exec(pattern) == null || matches_array == null ) { 35 str_regexp + ".exec(" + pattern +")", 37 regexp.exec(pattern) ); 45 regexp.exec(pattern).length ); 50 regexp.exec(pattern).index ); 54 pattern, 55 regexp.exec(pattern).input ); 61 regexp.exec(pattern)[matches] );
|
/external/icu4c/i18n/ |
uregexc.cpp | 25 uregex_openC( const char *pattern, 32 if (pattern == NULL) { 37 UnicodeString patString(pattern);
|
/external/webkit/Tools/Scripts/ |
test-webkitperl | 55 my $pattern = "Tools/Scripts/webkitperl/*_unittest/*.pl"; 57 my @files = <${pattern}>; # lists files alphabetically
|
/frameworks/base/core/java/android/os/ |
Vibrator.java | 54 * Vibrate with a given pattern. 63 * To cause the pattern to repeat, pass the index into the pattern array at which 69 * @param pattern an array of longs of times for which to turn the vibrator on or off. 70 * @param repeat the index into pattern at which to repeat, or -1 if 73 public abstract void vibrate(long[] pattern, int repeat);
|
PatternMatcher.java | 20 * A simple pattern matcher, which is safe to use on untrusted data: it does 26 * Pattern type: the given pattern must exactly match the string it is 32 * Pattern type: the given pattern must match the 38 * Pattern type: the given pattern is interpreted with a 51 public PatternMatcher(String pattern, int type) { 52 mPattern = pattern; 109 static boolean matchPattern(String pattern, String match, int type) [all...] |
/cts/libs/vogar-expect/src/vogar/ |
Expectation.java | 22 import java.util.regex.Pattern; 30 * pattern .*should get token \[, but get -1.* 35 * pattern .*cannot find symbol.* 40 /** The pattern to use when no expected output is specified */ 41 public static final Pattern MATCH_ALL_PATTERN 42 = Pattern.compile(".*", Pattern.MULTILINE | Pattern.DOTALL); 54 /** The pattern the expected output will match. */ 55 private final Pattern pattern field in class:Expectation [all...] |
/external/chromium/net/tools/dump_cache/ |
url_to_filename_encoder_unittest.cc | 277 string pattern = "1234567" + escape_ + "3F"; // 10 characters local 280 pattern + pattern + pattern + pattern + pattern + pattern + "1234" 281 "567" + escape_ + "3F" + pattern + pattern + pattern + pattern + pattern [all...] |
/development/tools/idegen/src/ |
Excludes.java | 17 import java.util.regex.Pattern; 25 private final List<Pattern> patterns; 30 public Excludes(List<Pattern> patterns) { 38 for (Pattern pattern : patterns) { 39 if (pattern.matcher(path).find()) {
|
/external/icu4c/io/ |
uscanf.c | 70 UChar *pattern; local 76 pattern = (UChar *)uprv_malloc(size * sizeof(UChar)); 77 if(pattern == 0) { 82 pattern = patBuffer; 84 u_charsToUChars(patternSpecification, pattern, size); 87 converted = u_vfscanf_u(f, pattern, ap); 90 if (pattern != patBuffer) { 91 uprv_free(pattern);
|