| /external/icu4c/test/intltest/ |
| sdtfmtts.cpp | 61 const UnicodeString pattern("yyyy.MM.dd G 'at' hh:mm:ss z"); 65 SimpleDateFormat pat(pattern, status); 67 errln("ERROR: Could not create SimpleDateFormat (pattern)"); 71 SimpleDateFormat pat_fr(pattern, Locale::getFrench(), status); 73 errln("ERROR: Could not create SimpleDateFormat (pattern French)"); 83 SimpleDateFormat cust1(pattern, symbols, status); 85 dataerrln("ERROR: Could not create SimpleDateFormat (pattern, symbols*) - exitting"); 90 SimpleDateFormat cust2(pattern, *symbols, status); 92 errln("ERROR: Could not create SimpleDateFormat (pattern, symbols)"); 96 SimpleDateFormat ovr1(pattern, override, status) [all...] |
| ucdtest.cpp | 236 UnicodeString pattern=UNICODE_STRING_SIMPLE("[:Alphabetic=:]"); local 237 pattern.insert(pattern.length()-2, UnicodeString(falseValues[i], -1, US_INV)); 239 UnicodeSet set(pattern, errorCode); 250 UnicodeString pattern=UNICODE_STRING_SIMPLE("[:Alphabetic=:]"); local 251 pattern.insert(pattern.length()-2, UnicodeString(trueValues[i], -1, US_INV)); 253 UnicodeSet set(pattern, errorCode);
|
| /external/icu4c/tools/genrb/ |
| prscmnts.cpp | 69 UnicodeString patString = "^\\s*?\\*\\s*?"; // remove pattern like " * " at the begining of the line 85 RegexPattern *pattern = RegexPattern::compile("@", 0, *status); local 91 pattern->split(src, stringArray, MAX_SPLIT_STRINGS, *status); 120 RegexPattern *pattern = RegexPattern::compile("@", UREGEX_MULTILINE, *status); local 126 pattern->split(src, stringArray,MAX_SPLIT_STRINGS , *status); 144 RegexPattern *pattern = RegexPattern::compile("@", UREGEX_MULTILINE, *status); local 151 int32_t retLen = pattern->split(src, stringArray, MAX_SPLIT_STRINGS, *status); 183 RegexPattern *pattern = RegexPattern::compile("@", UREGEX_MULTILINE, *status); local 190 int32_t retLen = pattern->split(src, stringArray, MAX_SPLIT_STRINGS, *status);
|
| /external/opencore/oscl/oscl/osclio/src/ |
| oscl_file_find.h | 64 * Oscl_FileFind class defines the generic way of finding filesystem elements that match a pattern within a directory 72 * Finds first element matching the pattern. 75 * @param pattern wildcard pattern filter (utf8). passing NULL, results in a universal match. 81 OSCL_IMPORT_REF const char *FindFirst(const char *directory, const char *pattern, char *buf, uint32 buflen); 86 * @param pattern wildcard pattern filter (utf16). passing NULL, results in a universal match. 92 OSCL_IMPORT_REF const oscl_wchar *FindFirst(const oscl_wchar *directory, const oscl_wchar *pattern, oscl_wchar *buf, uint32 buflen);
|
| /external/webkit/JavaScriptCore/runtime/ |
| RegExp.cpp | 57 inline RegExp::RegExp(JSGlobalData* globalData, const UString& pattern) 58 : m_pattern(pattern) 66 inline RegExp::RegExp(JSGlobalData* globalData, const UString& pattern, const UString& flags) 67 : m_pattern(pattern) 91 PassRefPtr<RegExp> RegExp::create(JSGlobalData* globalData, const UString& pattern) 93 return adoptRef(new RegExp(globalData, pattern)); 96 PassRefPtr<RegExp> RegExp::create(JSGlobalData* globalData, const UString& pattern, const UString& flags) 98 return adoptRef(new RegExp(globalData, pattern, flags));
|
| /external/webkit/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/JavaScriptCore/yarr/ |
| RegexInterpreter.h | 297 BytecodePattern(ByteDisjunction* body, Vector<ByteDisjunction*> allParenthesesInfo, RegexPattern& pattern) 299 , m_ignoreCase(pattern.m_ignoreCase) 300 , m_multiline(pattern.m_multiline) 302 newlineCharacterClass = pattern.newlineCharacterClass(); 303 wordcharCharacterClass = pattern.wordcharCharacterClass(); 306 m_userCharacterClasses.append(pattern.m_userCharacterClasses); 310 pattern.m_userCharacterClasses.clear(); 330 BytecodePattern* byteCompileRegex(const UString& pattern, unsigned& numSubpatterns, const char*& error, bool ignoreCase = false, bool multiline = false);
|
| /packages/apps/Email/tests/src/com/android/email/mail/transport/ |
| MockTransport.java | 29 import java.util.regex.Pattern; 66 Transaction(String pattern, String[] responses) { 68 mPattern = pattern; 96 * Give the mock a pattern to wait for. No response will be sent. 97 * @param pattern Java RegEx to wait for 99 public void expect(String pattern) { 100 expect(pattern, (String[])null); 104 * Give the mock a pattern to wait for and a response to send back. 105 * @param pattern Java RegEx to wait for 108 public void expect(String pattern, String response) [all...] |
| /dalvik/libcore/regex/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
| PatternTest.java | 22 import java.util.regex.Pattern; 36 value = Pattern.class, 76 final static int[] flagsSet = { Pattern.CASE_INSENSITIVE, 77 Pattern.MULTILINE, Pattern.DOTALL, Pattern.UNICODE_CASE 78 /* , Pattern.CANON_EQ */ }; 96 Pattern p = Pattern.compile("a"); 111 // splitting CharSequence which ends with pattern 512 String pattern = "b)a"; local 585 String pattern = "(?![^\\\\<C\\\\f\\\\0146\\\\0270\\\\}&&[|\\\\02-\\\\x3E\\\\}|X-\\\\|]]{7,}+)[|\\\\\\\\\\\\x98\\\\<\\\\?\\\\u4FCFr\\\\,\\\\0025\\\\}\\\\004|\\\\0025-\\\\052\\061]|(?<![|\\\\01-\\\\u829E])|(?<!\\\\p{Alpha})|^|(?-s:[^\\\\x15\\\\\\\\\\\\x24F\\\\a\\\\,\\\\a\\\\u97D8[\\\\x38\\\\a[\\\\0224-\\\\0306[^\\\\0020-\\\\u6A57]]]]??)(?uxix:[^|\\\\{\\\\[\\\\0367\\\\t\\\\e\\\\x8C\\\\{\\\\[\\\\074c\\\\]V[|b\\\\fu\\\\r\\\\0175\\\\<\\\\07f\\\\066s[^D-\\\\x5D]]])(?xx:^{5,}+)(?uuu)(?=^\\\\D)|(?!\\\\G)(?>\\\\.*?)(?![^|\\\\]\\\\070\\\\ne\\\\{\\\\t\\\\[\\\\053\\\\?\\\\\\\\\\\\x51\\\\a\\\\075\\\\0023-\\\\[&&[|\\\\022-\\\\xEA\\\\00-\\\\u41C2&&[^|a-\\\\xCC&&[^\\\\037\\\\uECB3\\\\u3D9A\\\\x31\\\\|\\\\<b\\\\0206\\\\uF2EC\\\\01m\\\\,\\\\ak\\\\a\\\\03&&\\\\p{Punct}]]]])(?-dxs:[|\\\\06-\\\\07|\\\\e-\\\\x63&&[|Tp\\\\u18A3\\\\00\\\\|\\\\xE4\\\\05\\\\061\\\\015\\\\0116C|\\\\r\\\\{\\\\}\\\\006\\\\xEA\\\\0367\\\\xC4\\\\01\\\\0042\\\\0267\\\\xBB\\\\01T\\\\}\\\\0100\\\\?[|\\\\[-\\\\u459B|\\\\x23\\\\x91\\\\rF\\\\0376[|\\\\?-\\\\x94\\\\0113-\\\\\\\\\\\\s]]]]{6}?)(?<=[^\\\\t-\\\\x42H\\\\04\\\\f\\\\03\\\\0172\\\\?i\\\\u97B6\\\\e\\\\f\\\\uDAC2])(?=\\\\.*+)(?>[^\\\\016\\\\r\\\\{\\\\,\\\\uA29D\\\\034\\\\02[\\\\02-\\\\[|\\\\t\\\\056\\\\uF599\\\\x62\\\\e\\\\<\\\\032\\\\uF0AC\\\\0026\\\\0205Q\\\\|\\\\\\\\\\\\06\\\\0164[|\\\\057-\\\\u7A98&&[\\\\061-g|\\\\|\\\\0276\\\\n\\\\042\\\\011\\\\e\\\\xE8\\\\x64B\\\\04\\\\u6D0EDW^\\\\p{Lower}]]]]?)(?<=[^\\\\n\\\\\\\\\\\\t\\\\u8E13\\\\,\\\\0114\\\\u656E\\\\xA5\\\\]&&[\\\\03-\\\\026|\\\\uF39D\\\\01\\\\{i\\\\u3BC2\\\\u14FE]])(?<=[^|\\\\uAE62\\\\054H\\\\|\\\\}&&^\\\\p{Space}])(?sxx)(?<=[\\\\f\\\\006\\\\a\\\\r\\\\xB4]{1,5})|(?x-xd:^{5}+)()"; local 610 String pattern = "(a{1,3})aab"; local 1351 String pattern = ".*(..).*\\\\1.*"; local 1563 Pattern pattern = Pattern.compile("\\\\p{javaLowerCase}"); local [all...] |
| /external/icu4c/i18n/ |
| choicfmt.cpp | 68 // Creates a ChoiceFormat instance based on the pattern. 124 // pattern and populates UParseError 286 ChoiceFormat::applyPattern(const UnicodeString& pattern, 290 applyPattern(pattern, parseError, status); 294 // Applies the pattern to this ChoiceFormat instance. 297 ChoiceFormat::applyPattern(const UnicodeString& pattern, 311 // this pattern (fCount), which is 1 more than the number of 315 for (i=0; i<pattern.length(); ++i) { 316 UChar c = pattern[i]; 323 } while (i<pattern.length() & [all...] |
| 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/v8/test/mjsunit/ |
| string-indexof-1.js | 60 // Test single char pattern 68 // Test multi-char pattern 77 //single char pattern 88 // pattern of 15 chars, repeated every 16 chars in long 89 var pattern = "ABACABADABACABA"; variable 90 for(var i = 0; i < long.length - pattern.length; i+= 7) { 91 var index = long.indexOf(pattern, i); 97 pattern = "JABACABADABACABA"; 98 assertEquals(511, long.indexOf(pattern), "Long JABACABA..., First J"); 99 assertEquals(1535, long.indexOf(pattern, 512), "Long JABACABA..., Second J") [all...] |
| /external/webkit/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));
|
| /dalvik/libcore/text/src/main/java/java/text/ |
| DecimalFormat.java | 112 * A {@code DecimalFormat} consists of a <em>pattern</em> and a set of 113 * <em>symbols</em>. The pattern may be set directly using 115 * manipulate aspects of the pattern, such as the minimum number of integer 117 * using the {@link NumberFormat} factory methods, the pattern and symbols are 119 * <h4>Special Pattern Characters</h4> 121 * Many characters in a pattern are taken literally; they are matched during 125 * Often the replacement character is the same as the pattern character; in the 132 * To insert a special character in a pattern as a literal, that is, without any 224 * international currency symbol. If present in a pattern, the monetary decimal 244 * A {@code DecimalFormat} pattern contains a postive and negative subpattern [all...] |
| /dalvik/libcore/logging/src/main/java/java/util/logging/ |
| XMLFormatter.java | 105 // to parse pattern string 107 String pattern = r.getMessage(); local 108 if (null != rb && null != pattern) { 111 message = rb.getString(pattern); 117 message = pattern; 123 sb.append(indent).append(("<key>")).append(pattern).append( 129 } else if (null != pattern) { 130 sb.append(indent).append(("<message>")).append(pattern).append(
|
| /external/icu4c/i18n/unicode/ |
| msgfmt.h | 51 * specified at once in a <EM>pattern</EM>. By using different 91 * {@link #format(const UnicodeString& pattern,const Formattable* arguments,int32_t cnt,UnicodeString& appendTo,UErrorCode& success)}, 111 * <LI>If one of the arguments does not occur in the pattern, it 119 * some part of the parse is ambiguous. For example, if the pattern 124 * then the rightmost subformat in the pattern string will produce the 174 * The pattern is of the following form. Legend: 214 * a ChoiceFormat, the pattern must always be specified, since there 224 * If a pattern is used, then unquoted braces in the pattern, if any, 275 * or by using a pattern (see ChoiceFormat for more information) as in [all...] |
| smpdtfmt.h | 53 * is guaranteed to get an appropriate formatting pattern for whatever locale the 56 * and give it an appropriate pattern (or use one of the factory methods on DateFormat 57 * and modify the pattern after the fact with toPattern() and applyPattern(). 61 * The date/time format is specified by means of a string time pattern. In this 62 * pattern, all ASCII letters are reserved as pattern letters, which are defined 103 * The count of pattern letters determine the format. 117 * Any characters in the pattern that are not in the ranges of ['a'..'z'] and 122 * A pattern containing any invalid pattern letter will result in a failin [all...] |
| /external/kernel-headers/original/asm-x86/ |
| string_32.h | 208 * as we by now know that both pattern and count is constant.. 210 static __always_inline void * __constant_c_and_count_memset(void * s, unsigned long pattern, size_t count) 216 *(unsigned char *)s = pattern; 219 *(unsigned short *)s = pattern; 222 *(unsigned short *)s = pattern; 223 *(2+(unsigned char *)s) = pattern; 226 *(unsigned long *)s = pattern; 234 : "a" (pattern),"0" (count/4),"1" ((long) s) \
|
| /external/opencore/baselibs/media_data_structures/src/ |
| access_unit_impl.cpp | 233 bool AccessUnitImplementation::match_bit_pattern_no_state(const int idx, const int offset, const uint8 * pattern, 277 if ((* tmp_ptr) != pattern[ii]) 294 if (((*tmp_ptr) & bit_mask) == (pattern[num_bytes] & bit_mask)) 311 int32 AccessUnitImplementation::match_bit_pattern_with_state(const int32 idx, const int32 offset, const uint8 * pattern, 356 if ((num_bytes > 0) && this->match_bit_pattern_no_state(idx, offset, pattern, num_bits_to_match)) 366 if (this->match_bit_pattern_no_state(idx, offset, (pattern + ii), pattern_size_in_bits - ii*8)) 372 if (bits_in_fraction && ((*tmp_ptr & bit_mask) == (pattern[num_bytes] & bit_mask)))
|
| /external/icu4c/common/unicode/ |
| uniset.h | 66 * string pattern. 68 * <p><b>Pattern syntax</b></p> 179 * <td nowrap valign="top" align="right"><code>pattern := </code></td> 185 * <td valign="top"><code>char | (char '-' char) | pattern-expr<br> 189 * <td nowrap valign="top" align="right"><code>pattern-expr := </code></td> 190 * <td valign="top"><code>pattern | pattern-expr pattern | 191 * pattern-expr op pattern<br [all...] |
| /external/bluetooth/bluez/test/ |
| test-device | 20 print " discover <address> [pattern]" 59 pattern = "" variable 61 pattern = sys.argv[3] variable 62 services = device.DiscoverServices(pattern);
|
| /external/elfutils/libasm/ |
| asm_align.c | 60 /* Fill in the bytes. We align the pattern according to the 62 byteptr = asmscn->offset % asmscn->pattern->len; 70 = asmscn->pattern->bytes[byteptr++]; 72 if (byteptr == asmscn->pattern->len)
|
| /external/icu4c/common/ |
| util_props.cpp | 66 * Parse a pattern string starting at offset pos. Keywords are 72 * @param pattern must only contain lowercase characters, which 80 * signs in 'pattern'. 85 const UnicodeString& pattern, int32_t* parsedInts) { 89 for (int32_t i=0; i<pattern.length(); ++i) { 90 UChar cpat = pattern.charAt(i);
|
| /external/v8/src/ |
| regexp.js | 35 function DoConstructRegExp(object, pattern, flags, isConstructorCall) { 37 if (IS_REGEXP(pattern)) { 41 flags = (pattern.global ? 'g' : '') 42 + (pattern.ignoreCase ? 'i' : '') 43 + (pattern.multiline ? 'm' : ''); 44 pattern = pattern.source; 47 pattern = IS_UNDEFINED(pattern) ? '' : ToString(pattern); [all...] |