/external/smali/util/src/main/java/org/jf/util/ |
ConsoleUtil.java | 33 import java.util.regex.Pattern; 75 Pattern pattern = Pattern.compile("Columns:[ \t]*(\\d+)"); local 76 Matcher m = pattern.matcher(output);
|
/external/stressapptest/src/ |
finelock_queue.h | 27 #include "pattern.h" 66 return pe->pattern != NULL; 70 return pe->pattern == NULL;
|
/external/webkit/Source/JavaScriptCore/runtime/ |
RegExpCache.cpp | 63 m_cacheMap.remove(RegExpKey(patternKeyArray[m_nextKeyToEvict].flagsValue, patternKeyArray[m_nextKeyToEvict].pattern)); 66 patternKeyArray[m_nextKeyToEvict].pattern = patternString.impl();
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_3/Exceptions/ |
15.11.1.1.js | 98 * as allowed for by ECMA 15.11.4.3. This makes |pattern| work in this case. 101 * you may have to modify |pattern| to take that into account - 106 var pattern = err.name + '\\s*:?\\s*' + msg; 107 return err.toString().search(RegExp(pattern));
|
15.11.4.4-1.js | 135 * as allowed for by ECMA 15.11.4.3. This makes |pattern| work in this case. 138 * you may have to modify |pattern| to take that into account - 143 var pattern = err.name + '\\s*:?\\s*' + msg; 144 return err.toString().search(RegExp(pattern));
|
/external/webkit/Tools/Scripts/webkitpy/common/config/ |
build.py | 117 # See if the file matches a known pattern. 118 for pattern, platforms in patterns: 119 if re.search(pattern, file):
|
/packages/apps/Email/src/com/android/email/mail/internet/ |
EmailHtmlUtil.java | 20 import java.util.regex.Pattern; 26 private static final Pattern PLAIN_TEXT_TO_ESCAPE = Pattern.compile("[<>&]| {2,}|\r?\n"); 35 Pattern pattern = PLAIN_TEXT_TO_ESCAPE; local 36 Matcher match = pattern.matcher(text);
|
/packages/apps/Email/tests/src/com/android/email/mail/transport/ |
MockTransport.java | 29 import java.util.regex.Pattern; 67 Transaction(String pattern, String[] responses) { 69 mPattern = pattern; 99 * Give the mock a pattern to wait for. No response will be sent. 100 * @param pattern Java RegEx to wait for 102 public void expect(String pattern) { 103 expect(pattern, (String[])null); 107 * Give the mock a pattern to wait for and a response to send back. 108 * @param pattern Java RegEx to wait for 111 public void expect(String pattern, String response) [all...] |
/tools/motodev/src/plugins/db.core/src/com/motorolamobility/studio/android/db/core/ui/wizards/createdb/ |
DatabaseCreationFieldValidator.java | 20 import java.util.regex.Pattern;
29 * not already exists in the Database View tree and must follow a certain pattern.
35 * The regular expression pattern used to validate the database name provided by the user
45 * Expression pattern used to validate the database name provided by the user
47 private final Pattern pattern = Pattern.compile(VALIDATOR_PATTERN);
field in class:DatabaseCreationFieldValidator 63 Matcher patternMatcher = pattern.matcher(newText);
|
/external/icu4c/i18n/ |
stsearch.cpp | 24 StringSearch::StringSearch(const UnicodeString &pattern, 31 m_pattern_(pattern) 63 StringSearch::StringSearch(const UnicodeString &pattern, 70 m_pattern_(pattern) 98 StringSearch::StringSearch(const UnicodeString &pattern, 105 m_pattern_(pattern) 126 StringSearch::StringSearch(const UnicodeString &pattern, 133 m_pattern_(pattern) 289 void StringSearch::setPattern(const UnicodeString &pattern, 293 m_pattern_ = pattern; [all...] |
/external/icu4c/i18n/unicode/ |
udatpg.h | 31 * a pattern which just includes the desired fields and lengths. The generator 32 * will return the "best fit" pattern corresponding to that skeleton. 37 * fields in a pattern, in order, since we have that internally. 42 * Opaque type for a date/time pattern generator object. 50 * because some fields are merged for the date/time pattern generator. 92 * pattern to match those in the skeleton (when this would not happen 185 * Get the best pattern matching the input skeleton. It is guaranteed to 189 * It uses a stateful pattern parser which is set up for each generator object, 196 * The skeleton is a pattern containing only the variable fields. 200 * The best pattern found from the given skeleton [all...] |
smpdtfmt.h | 56 * is guaranteed to get an appropriate formatting pattern for whatever locale the 59 * and give it an appropriate pattern (or use one of the factory methods on DateFormat 60 * and modify the pattern after the fact with toPattern() and applyPattern(). 64 * The date/time format is specified by means of a string time pattern. In this 65 * pattern, all ASCII letters are reserved as pattern letters, which are defined 106 * The count of pattern letters determine the format. 120 * Any characters in the pattern that are not in the ranges of ['a'..'z'] and 125 * A pattern containing any invalid pattern letter will result in a failin [all...] |
/external/icu4c/test/intltest/ |
dtptngts.cpp | 378 // add new pattern 396 // get a pattern and modify it 400 UnicodeString pattern; local 401 pattern = format->toPattern(pattern); 411 UnicodeString newPattern = gen->replaceFieldTypes(pattern, UnicodeString("vvvv"), status); 447 pattern = UnicodeString("dd-MMM"); 450 UnicodeString retSkeleton = gen->getSkeleton(pattern, status); 455 retSkeleton = gen->getBaseSkeleton(pattern, status); 461 pattern = UnicodeString("dd/MMMM/yy") 822 UnicodeString pattern = dtpgen->getBestPattern(skel, options, status); local [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_3/RegExp/ |
shell.js | 47 var pattern = new RegExp(); 59 pattern = patterns[i]; 63 state = getState(status, pattern, string); 129 function getState(status, pattern, string) 133 * We don't have to worry about this in |pattern|; such escaping is 134 * done automatically by pattern.toString(), invoked implicitly below. 149 return (status + MSG_PATTERN + pattern + MSG_STRING + singleQuote(string));
|
/external/webkit/Source/WebCore/platform/graphics/cairo/ |
CairoUtilities.cpp | 143 cairo_pattern_t* pattern = cairo_pattern_create_for_surface(image); local 144 cairo_pattern_set_extend(pattern, CAIRO_EXTEND_REPEAT); 151 cairo_pattern_set_matrix(pattern, &combined); 154 cairo_set_source(cr, pattern); 155 cairo_pattern_destroy(pattern);
|
/external/chromium/base/ |
string_util.cc | 923 static void EatSameChars(const CHAR** pattern, const CHAR* pattern_end, 927 while (*pattern != pattern_end && *string != string_end) { 928 if (!escape && IsWildcard(**pattern)) { 935 if (!escape && **pattern == '\\') { 936 escape = *pattern; 937 next(pattern, pattern_end); 942 const CHAR* pattern_next = *pattern; 947 *pattern = pattern_next; 956 *pattern = escape; 966 static void EatWildcard(const CHAR** pattern, const CHAR* end, NEXT next) [all...] |
/libcore/luni/src/main/java/java/util/ |
Scanner.java | 37 import java.util.regex.Pattern; 43 * radixes. The input is broken into tokens by the delimiter pattern, which is 64 // Default delimiting pattern. 65 private static final Pattern DEFAULT_DELIMITER = Pattern 68 // The boolean's pattern. 69 private static final Pattern BOOLEAN_PATTERN = Pattern.compile( 70 "true|false", Pattern.CASE_INSENSITIVE); 72 // Pattern used to recognize line terminator [all...] |
/external/chromium/chrome/browser/content_settings/ |
content_settings_notification_provider.cc | 59 GURL NotificationProvider::ToGURL(const ContentSettingsPattern& pattern) { 60 std::string pattern_spec(pattern.AsString()); 72 } else if (!pattern.scheme().empty()) { 73 url_spec += pattern.scheme(); 149 ContentSettingsPattern pattern = local 152 pattern, 153 pattern, 159 ContentSettingsPattern pattern = local 162 pattern, 163 pattern, [all...] |
content_settings_pref_provider_unittest.cc | 180 ContentSettingsPattern pattern("[*.]example.com"); 183 pattern, 184 pattern, 189 EXPECT_EQ(pattern, observer.last_pattern); 237 ContentSettingsPattern pattern("[*.]example.com"); 239 pattern, 240 pattern, 327 ContentSettingsPattern pattern("[*.]example.com"); 335 pattern, 336 pattern, [all...] |
/external/chromium/chrome/common/ |
time_format.cc | 207 icu::UnicodeString pattern; local 218 pattern += kKeywords[j]; 219 pattern += UNICODE_STRING_SIMPLE("{"); 220 pattern += icu::UnicodeString(sub_pattern.c_str(), "UTF-8"); 221 pattern += UNICODE_STRING_SIMPLE("}"); 224 icu::PluralFormat* format = new icu::PluralFormat(*rules, pattern, err); 247 icu::UnicodeString pattern; local 249 pattern += UNICODE_STRING_SIMPLE("one{# ") + kUnits[index][0] + suffix; 251 pattern += UNICODE_STRING_SIMPLE(" other{# ") + kUnits[index][1] + suffix; 253 icu::PluralFormat* format = new icu::PluralFormat(rules, pattern, err) [all...] |
/external/iptables/extensions/ |
libxt_string.c | 81 /* xt_string does not need \0 at the end of the pattern */ 83 strncpy(info->pattern, s, XT_STRING_MAX_PATTERN_SIZE); 130 info->pattern[sindex] = s[i+1]; 152 info->pattern[sindex] = (char) schar; 158 info->pattern[sindex] = s[i]; 265 if (is_hex_string(info->pattern, info->patlen)) { 267 print_hex_string(info->pattern, info->patlen); 270 print_string(info->pattern, info->patlen); 289 if (is_hex_string(info->pattern, info->patlen)) { 291 print_hex_string(info->pattern, info->patlen) [all...] |
/external/regex-re2/util/ |
pcre.h | 36 // supplied pattern exactly. 47 // By default, pattern and text are plain text, one byte per character. 48 // The UTF8 flag, passed to the constructor, causes both pattern 51 // is likelier to be UTF-8 than the pattern, but the match returned 88 // You can use the "PartialMatch" operation when you want the pattern 106 // object from the pattern and use it multiple times. If you do so, 109 // Example: precompile pattern for faster matching: 110 // PCRE pattern("h.*o"); 112 // if (PCRE::FullMatch(str, pattern)) ...; 223 PCRE(const char* pattern); 235 const string& pattern() const { return pattern_; } function in class:re2::PCRE [all...] |
/libcore/luni/src/main/java/java/text/ |
DecimalFormat.java | 64 * A {@code DecimalFormat} consists of a <em>pattern</em> and a set of 65 * <em>symbols</em>. The pattern may be set directly using 67 * manipulate aspects of the pattern, such as the minimum number of integer 69 * using the {@link NumberFormat} factory methods, the pattern and symbols are 71 * <h4>Special Pattern Characters</h4> 73 * Many characters in a pattern are taken literally; they are matched during 77 * Often the replacement character is the same as the pattern character; in the 84 * To insert a special character in a pattern as a literal, that is, without any 176 * international currency symbol. If present in a pattern, the monetary decimal 196 * A {@code DecimalFormat} pattern contains a positive and negative subpattern [all...] |
/libcore/luni/src/test/java/libcore/java/text/ |
OldMessageFormatTest.java | 43 String pattern = "A {3, number, currency} B {2, time} C {0, number, percent} D {4} E {1,choice,0#off|1#on} F {0, date}"; local 44 format1 = new MessageFormat(pattern); 52 assertEquals("Wrong full time pattern", "{0,time,full}", format 87 String pattern = "getLocale test {0,number,#,####}"; local 91 mf = new MessageFormat(pattern, l[i]); 103 mf = new MessageFormat(pattern); 143 "Test1B:wrong format for pattern index " + i + ":", 221 String pattern = "Date: {0,date} Currency: {1, number, currency} Integer: {2, number, integer}"; local 222 String sFormat = MessageFormat.format(pattern, (Object[]) args); 227 pattern = "abc {4, number, integer} def {3,date} ghi {2,number} jkl {1,choice,0#low|1#high} mnop {0}" 283 String pattern = "On {4,date} at {3,time}, he ate {2,number, integer} " + local 335 String pattern = "A {3, number, currency} B {2, time} C {0, number, percent} D {4} E {1,choice,0#off|1#on} F {0, date}"; local [all...] |
/external/qemu/ |
qemu-io.c | 31 * Parse the pattern argument to various sub-commands. 33 * Because the pattern is used as an argument to memset it must evaluate 39 long pattern; local 41 pattern = strtol(arg, &endptr, 0); 42 if (pattern < 0 || pattern > UCHAR_MAX || *endptr != '\0') { 43 printf("%s is not a valid pattern byte\n", arg); 47 return pattern; 58 static void *qemu_io_alloc(size_t len, int pattern) 65 memset(buf, pattern, len) 360 int pattern = 0, pattern_offset = 0, pattern_count = 0; local 540 int pattern = 0; local 664 int pattern = 0xcd; local 795 int pattern = 0xcd; local 900 int pattern = 0xcd; local 1013 int pattern; member in struct:aio_ctx 1223 int pattern = 0xcd; local [all...] |