/external/icu/icu4c/source/samples/strsrch/ |
H A D | strsrch.cpp | 12 "usage: strsrch [options*] -source source_string -pattern pattern_string\n" 24 "-pattern string Pattern string to look for in source\n" 27 "Example strsrch -rules \\u0026b\\u003ca -source a\\u0020b\\u0020bc -pattern b\n" 63 UChar pattern[100]; variable 78 {"-pattern", OptSpec::STRING, &opt_pattern}, 232 u_unescape(opt_pattern, pattern, 100); 234 search = usearch_openFromCollator(pattern, -1, source, -1, collator, NULL, 266 fprintf(stderr, "Error in searching for pattern %d\n", status); 294 fprintf(stdout, "Finding pattern %s in source %s\n", opt_pattern,
|
/external/icu/icu4c/source/samples/ugrep/ |
H A D | ugrep.cpp | 36 const char *pattern = NULL; // The regular expression variable 97 // Create a RegexPattern object from the user supplied pattern string. 102 UParseError parseErr; // In the event of a syntax error in the regex pattern, 106 RegexPattern *rePat = RegexPattern::compile(pattern, parseErr, status); 108 // of the (char *) pattern to a temporary 111 fprintf(stderr, "ugrep: error in pattern: \"%s\" at position %d\n", 117 // Create a RegexMatcher from the newly created pattern. 134 // Loop through the lines of a file, trying to match the regex pattern on each. 221 int remainingArgs = argc-optInd; // pattern file ... 223 fprintf(stderr, "ugrep: files or pattern ar [all...] |
/external/icu/icu4c/source/test/cintltst/ |
H A D | cdtdptst.c | 53 UChar *pattern; local 60 pattern=(UChar*)malloc(sizeof(UChar) * (strlen("EEE MMM dd HH:mm:ss.SSS zzz yyyy G")+1 )); 61 u_uastrcpy(pattern, "EEE MMM dd HH:mm:ss.SSS zzz yyyy G"); 62 fullFmt= udat_open(UDAT_PATTERN, UDAT_PATTERN,"en_US",NULL,0,pattern, u_strlen(pattern),&status); 70 u_uastrcpy(pattern, "dd-MMM-yy h:mm:ss 'o''clock' a z"); 71 fmt= udat_open(UDAT_PATTERN,UDAT_PATTERN,"en_US", NULL, 0,pattern, u_strlen(pattern), &status); 102 free(pattern); 157 void tryPat994(UDateFormat* format, const char* pattern, cons argument 199 UChar *pattern=NULL, *now=NULL, *then=NULL; local 232 UChar *pattern=NULL, *tzID=NULL; local 308 UChar *pattern, *tzID, *exp; local [all...] |
H A D | usrchdat.c | 28 const char *pattern; member in struct:SearchData
|
/external/icu/icu4c/source/test/intltest/ |
H A D | dadrfmt.cpp | 115 UnicodeString pattern; local 163 pattern = UnicodeString(spec,kPATTERN.length()); 165 format = new SimpleDateFormat(pattern, loc, status); 167 errln("case %d: could not create SimpleDateFormat from pattern: %s", n, u_errorName(status));
|
H A D | dtifmtts.cpp | 401 // first item is date pattern 1048 const char* pattern = data[0]; local 1061 SimpleDateFormat ref(pattern, loc, ec); 1111 // first item is date pattern 1269 const char* pattern = data[0]; local 1275 SimpleDateFormat ref(pattern, loc, ec);
|
H A D | itutil.cpp | 450 UnicodeString pattern=UNICODE_STRING_SIMPLE("abc|xy+z"); local 452 uregex_open(pattern.getBuffer(), pattern.length(), 0, NULL, errorCode)); 516 UnicodeString pattern=UNICODE_STRING_SIMPLE("abc|xy+z"); local 519 uregex_open(pattern.getBuffer(), pattern.length(), 0, NULL, errorCode));
|
H A D | ucdtest.cpp | 287 UnicodeString pattern=UNICODE_STRING_SIMPLE("[:Alphabetic=:]"); local 288 pattern.insert(pattern.length()-2, UnicodeString(falseValues[i], -1, US_INV)); 290 UnicodeSet set(pattern, errorCode); 301 UnicodeString pattern=UNICODE_STRING_SIMPLE("[:Alphabetic=:]"); local 302 pattern.insert(pattern.length()-2, UnicodeString(trueValues[i], -1, US_INV)); 304 UnicodeSet set(pattern, errorCode); 473 UnicodeString pattern; local 475 UnicodeString("[]"), rtl.toPattern(pattern)); [all...] |
/external/icu/icu4c/source/test/perf/unisetperf/ |
H A D | unisetperf.cpp | 34 UOPTION_DEF("pattern", '\x01', UOPT_REQUIRES_ARG), 39 "\t--pattern UnicodeSet pattern for instantiation.\n" 51 UnicodeString pattern=UnicodeString(options[SET_PATTERN].value, -1, US_INV).unescape(); local 52 set.applyPattern(pattern, status);
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
H A D | PatternTokenizer.java | 23 // settings used in the interpretation of the pattern 34 // data about the current pattern being parsed. start gets moved as we go along. 37 private String pattern; field in class:PatternTokenizer 130 public PatternTokenizer setPattern(CharSequence pattern) { argument 131 return setPattern(pattern.toString()); 134 public PatternTokenizer setPattern(String pattern) { argument 135 if (pattern == null) { 139 this.limit = pattern.length(); 140 this.pattern = pattern; [all...] |
H A D | SimplePatternFormatter.java | 13 * Compiled version of a pattern such as "{1} was born in {0}". 16 * such as <code>pattern.replace("{0}", "Colorado").replace("{1} "Fred");</code>. 44 private SimplePatternFormatter(String pattern, PlaceholdersBuilder builder) { argument 45 this.patternWithoutPlaceholders = pattern; 54 * @param pattern The string. 57 public static SimplePatternFormatter compile(String pattern) { argument 62 for (int i = 0; i < pattern.length(); i++) { 63 char ch = pattern.charAt(i); 215 * not the same as the original pattern string used to build this object. 227 * Returns this pattern wit [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
H A D | CompactDecimalFormat.java | 45 * Resetting the pattern prefixes or suffixes is not supported; the method calls are ignored. 142 * @param pattern 143 * A number format pattern. Note that the prefix and suffix are discarded, and the decimals are 162 public CompactDecimalFormat(String pattern, DecimalFormatSymbols formatSymbols, argument 182 finishInit(style, pattern, formatSymbols); 185 private void finishInit(CompactStyle style, String pattern, DecimalFormatSymbols formatSymbols) { argument 186 applyPattern(pattern);
|
H A D | ListFormatter.java | 224 * Returns the pattern to use for a particular item count. 226 * @return the pattern with {0}, {1}, {2}, etc. For English, 264 // Appends additional object. pattern is a template indicating where the new object gets 266 // represents the new object in pattern. next is the object to be added. If recordOffset 268 public FormattedListBuilder append(SimplePatternFormatter pattern, Object next, boolean recordOffset) { argument 269 if (pattern.getPlaceholderCount() != 2) { 270 throw new IllegalArgumentException("Need {0} and {1} only in pattern " + pattern); 273 pattern.formatAndReplace( 278 "{0} or {1} missing from pattern " [all...] |
H A D | PluralFormat.java | 70 * specify the message pattern, you can either pass it to the 78 * The pattern text defines the message output for each plural case of the 103 * (The offset defaults to 0 if it is omitted from the pattern string.) 150 * The applied pattern string. 153 private String pattern = null; field in class:PluralFormat 156 * The MessagePattern which contains the parsed structure of the pattern string. 280 * Creates a new cardinal-number <code>PluralFormat</code> for a given pattern string. 283 * @param pattern the pattern for this <code>PluralFormat</code>. 284 * @throws IllegalArgumentException if the pattern i 288 PluralFormat(String pattern) argument 306 PluralFormat(ULocale ulocale, String pattern) argument 322 PluralFormat(PluralRules rules, String pattern) argument 339 PluralFormat(ULocale ulocale, PluralRules rules, String pattern) argument 355 PluralFormat(ULocale ulocale, PluralType type, String pattern) argument 371 PluralFormat(ULocale ulocale, PluralType type, String pattern, NumberFormat numberFormat) argument 415 applyPattern(String pattern) argument 449 findSubMessage( MessagePattern pattern, int partIndex, PluralSelector selector, Object context, double number) argument [all...] |
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/ |
H A D | SimpleDateFormatICU.java | 50 public void applyLocalizedPattern(String pattern) { argument 51 fIcuSdf.applyLocalizedPattern(pattern); 55 public void applyPattern(String pattern) { argument 56 fIcuSdf.applyPattern(pattern); 364 // However, the corresponding pattern characters are not used by 366 // are only used when user intentionally set a pattern including 367 // these ICU4J specific pattern letters. Even it happens,
|
/external/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/ |
H A D | TransliterationRule.java | 16 * <p>A rule consists of an input pattern and an output string. When 17 * the input pattern is matched, the output string is emitted. The 18 * input pattern consists of zero or more characters which are matched 29 * input pattern, indicated by an offset and limit. The segment may 33 * the input pattern) to be copied to the output string. The range of 46 // TODO Eliminate the pattern and keyLength data members. They 49 // methods and pattern/keyLength can be isolated into a separate 82 private String pattern; field in class:TransliterationRule 85 * An array of matcher objects corresponding to the input pattern 96 * Substring [0,anteContextLength) of pattern i [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
H A D | TestMessageFormat.java | 133 // {sfb} use double format in pattern, so result will match (not strictly necessary) 134 final String pattern = "There {0,choice,0.0#are no files|1.0#is one file|1.0<are {0, number} files} on disk {1}. "; 135 logln("The input pattern : " + pattern); 137 MessageFormat fmt = new MessageFormat(pattern); 138 assertEquals("toPattern", pattern, fmt.toPattern()); 140 errln("MessageFormat pattern creation failed."); 162 // ICU 4.8 returns the original pattern (testCases) 163 // rather than toPattern() reconstituting a new, equivalent pattern string (testResultPatterns). 199 // ICU 4.8 returns the original pattern (testCase 1715 getPatternAndSkipSyntax(MessagePattern pattern) argument [all...] |
/external/libedit/src/ |
H A D | search.c | 108 * Return if string matches pattern 157 * return True if the pattern matches the prefix 172 * Set the history seatch pattern 296 /* No can do if globbing characters in pattern */ 480 * Use the old pattern, but wild-card it. 526 * Look for a pattern inside a line 532 Char *pattern = el->el_search.patbuf; local 535 ocp = &pattern[1]; 539 ocp = pattern;
|
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/ |
H A D | PhoneNumberMatcher.java | 45 * The phone number pattern used by {@link #find}, similar to 49 * pattern. 92 * Patterns used to extract phone numbers from a larger phone-number-like pattern. These are 105 // phone number. Will match a pattern like "(650) 223 3345 (754) 223 3321". 127 * to make the pattern more easily understood. */ 168 /* Phone number pattern allowing optional punctuation. */ 272 * Trims away any characters after the first match of {@code pattern} in {@code candidate}, 275 private static CharSequence trimAfterFirstMatch(Pattern pattern, CharSequence candidate) { argument 276 Matcher trailingCharsMatcher = pattern.matcher(candidate);
|
/external/lldb/source/Target/ |
H A D | CPPLanguageRuntime.cpp | 94 std::string& pattern, 98 size_t pattern_len = pattern.size(); 100 while ( (pos = target.find(pattern)) != std::string::npos ) 93 replace(std::string& target, std::string& pattern, std::string& with) argument
|
/external/llvm/unittests/ADT/ |
H A D | APFloatTest.cpp | 1408 const char *pattern = GetZeroTest[i].sign? "-0x0p+0" : "0x0p+0"; local 1410 pattern);
|
/external/mesa3d/src/gallium/auxiliary/draw/ |
H A D | draw_pipe_stipple.c | 51 uint pattern; member in struct:stipple_stage 112 stipple_test(int counter, ushort pattern, int factor) argument 115 return (1 << b) & pattern; 150 (ushort) stipple->pattern, stipple->factor ); 206 stipple->pattern = draw->rasterizer->line_stipple_pattern;
|
/external/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_pstipple.c | 33 * Basically, modify fragment shader to sample the 32x32 stipple pattern 64 const uint32_t pattern[32]) 84 if (pattern[i] & (bit31 >> j)) { 102 * Create a 32x32 alpha8 texture that encodes the given stipple pattern. 106 const uint32_t pattern[32]) 124 util_pstipple_update_stipple_texture(pipe, tex, pattern); 62 util_pstipple_update_stipple_texture(struct pipe_context *pipe, struct pipe_resource *tex, const uint32_t pattern[32]) argument 105 util_pstipple_create_stipple_texture(struct pipe_context *pipe, const uint32_t pattern[32]) argument
|
/external/mesa3d/src/gallium/state_trackers/vega/ |
H A D | asm_fill.h | 134 pattern( struct ureg_program *ureg, function 630 {VEGA_PATTERN_SHADER, pattern,
|
/external/messageformat/java/com/ibm/icu/simple/ |
H A D | PluralFormat.java | 68 * specify the message pattern, you can either pass it to the 76 * The pattern text defines the message output for each plural case of the 101 * (The offset defaults to 0 if it is omitted from the pattern string.) 148 * The applied pattern string. 151 private String pattern = null; field in class:PluralFormat 154 * The MessagePattern which contains the parsed structure of the pattern string. 222 * <code>pattern</code>: is <code>null</code><br/> 235 pattern = null; 243 * Sets the pattern used by this plural format. 244 * The method parses the pattern an 252 applyPattern(String pattern) argument 286 findSubMessage( MessagePattern pattern, int partIndex, PluralSelector selector, Object context, double number) argument [all...] |