/libcore/luni/src/main/java/java/util/logging/ |
H A D | Formatter.java | 64 String pattern = r.getMessage(); 69 pattern = rb.getString(pattern); 71 pattern = r.getMessage(); 74 if (pattern != null) { 80 if (pattern.indexOf("{0") >= 0 && params != null && params.length > 0) { 82 pattern = MessageFormat.format(pattern, params); 84 pattern = r.getMessage(); 88 return pattern; [all...] |
H A D | FileHandler.java | 37 * these files are generated by given name pattern, see below for details. 65 * <li>java.util.logging.FileHandler.pattern specifies name pattern for the 69 * Name pattern is a string that may include some special substrings, which will 83 * generation field("%g") has not been specified in the pattern, then the 90 * pattern and some contention on a file does occur, then a unique numerical 120 // the pattern for output file name 121 private String pattern; field in class:FileHandler 215 pattern = (p == null) ? getStringProperty(className + ".pattern", 382 FileHandler(String pattern) argument 408 FileHandler(String pattern, boolean append) argument 439 FileHandler(String pattern, int limit, int count) argument 475 FileHandler(String pattern, int limit, int count, boolean append) argument [all...] |
H A D | XMLFormatter.java | 86 // to parse pattern string 88 String pattern = r.getMessage(); 89 if (rb != null && pattern != null) { 92 message = rb.getString(pattern); 98 message = pattern; 102 append(sb, 1, "key", pattern); 105 } else if (pattern != null) { 106 append(sb, 1, "message", pattern);
|
/libcore/luni/src/main/java/java/util/regex/ |
H A D | PatternSyntaxException.java | 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) { argument 68 this.pattern = pattern; 79 return pattern; 105 if (pattern != null) { 107 sb.append(pattern);
|
H A D | Pattern.java | 189 * <tr> <td> (?dimsux-dimsux) </td> <td>Evaluates the rest of the pattern with the given flags enabled/disabled.</td> </tr> 230 * This constant specifies that a pattern matches Unix line endings ('\n') 285 private final String pattern; field in class:Pattern 291 * Returns a {@link Matcher} for this pattern applied to the given {@code input}. 301 * Splits the given {@code input} at occurrences of this pattern. 303 * <p>If this pattern does not occur in the input, the result is an 329 return Splitter.split(this, pattern, input.toString(), limit); 342 public String pattern() { method in class:Pattern 343 return pattern; 348 return pattern; 380 compile(String pattern) argument 384 Pattern(String pattern, int flags) argument [all...] |
H A D | Matcher.java | 26 * Holds the pattern, that is, the compiled regular expression. 28 private Pattern pattern; field in class:Matcher 31 * Holds the handle for the native version of the pattern. 79 * Creates a matcher for a given combination of pattern and input. Both 82 * @param pattern 83 * the pattern to use. 87 Matcher(Pattern pattern, CharSequence input) { argument 88 usePattern(pattern); 216 * Sets a new pattern for the {@code Matcher}. Results of a previous find 220 * @param pattern 225 usePattern(Pattern pattern) argument 326 public Pattern pattern() { method in class:Matcher [all...] |
H A D | Splitter.java | 78 public static String[] split(Pattern pattern, String re, String input, int limit) { argument 93 Matcher matcher = new Matcher(pattern, input);
|
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
H A D | ReplaceTest.java | 26 String target, pattern, repl; 29 pattern = "fo[^o]"; 32 Pattern p = Pattern.compile(pattern); 40 String target, pattern, repl, s; 45 pattern = "\\[([0-9]+)\\]([a-z]+)"; 48 p = Pattern.compile(pattern); 56 pattern = "\\[([0-9]+)\\]([a-z]+)\\(([0-9]+)\\)([a-z]+)\\{([0-9]+)\\}([a-z]+)"; 58 p = Pattern.compile(pattern); 71 String target, pattern, repl, s; 74 pattern [all...] |
H A D | PatternTest.java | 80 // splitting CharSequence which ends with pattern 177 assertTrue(p.pattern().equals(aPattern)); 342 // contained in the pattern, but ICU doesn't do this. 385 * Check default flags when they are not specified in pattern. Based on RI 422 String pattern = "b)a"; 424 Pattern.compile(pattern); 425 fail("Expected a PatternSyntaxException when compiling pattern: " 426 + pattern); 430 pattern = "bcde)a"; 432 Pattern.compile(pattern); [all...] |
/libcore/luni/src/main/java/java/sql/ |
H A D | Blob.java | 82 * Search for the position in this {@code Blob} at which a specified pattern 85 * @param pattern 86 * a {@code Blob} containing the pattern of data to search for in 91 * @return a {@code long} value with the position at which the pattern 92 * begins. Returns {@code -1} if the pattern is not found in this 97 public long position(Blob pattern, long start) throws SQLException; argument 101 * pattern begins, starting at a specified position within the {@code Blob}. 103 * @param pattern 104 * a byte array containing the pattern of data to search for in 109 * @return a {@code long} value with the position at which the pattern 115 position(byte[] pattern, long start) argument [all...] |
/libcore/expectations/ |
H A D | brokentests.txt | 60 pattern: ".*java.lang.SecurityException\\s+at java.lang.System.setSecurityManager.*", 67 pattern: ".*\\.java:\\d+: cannot find symbol.*" 277 pattern: ".*PKCS12Cipher.java\\:87\\).*NullPointerException.*" 286 pattern: ".*NullPointerException.*PKCS12CipherKAT.java\\:183\\).*" 295 pattern: ".*NullPointerException.*CipherKAT.java\\:205\\).*" 304 pattern: ".*TestOAEP_KAT.java\\:62\\).*NullPointerException.*" 313 pattern: ".*TestOAEP.java\\:50\\).*NullPointerException.*" 322 pattern: ".*TestOAEPParameterSpec.java\\:124\\).*NullPointerException.*" 331 pattern: ".*TestOAEPWithParams.java\\:58\\).*NullPointerException.*" 340 pattern [all...] |
H A D | icebox.txt | 178 pattern: ".*java.io.IOException.*openCheck.*"
|
/libcore/luni/src/test/java/libcore/java/util/logging/ |
H A D | OldFormatterTest.java | 64 String pattern = "pattern without 0 {1, number}"; 65 r.setMessage(pattern); 66 assertEquals(pattern, f.formatMessage(r));
|
/libcore/luni/src/test/java/libcore/java/text/ |
H A D | OldSimpleDateFormatTest.java | 52 public void test(String pattern, Calendar cal, String expected, int field) { argument 55 format.applyPattern(pattern); 59 System.out.println("Wrong format: \"" + pattern 66 public void parse(String pattern, String input, Date expected, int start, int end) { argument 67 pFormat.applyPattern(pattern); 70 assertTrue("Wrong result: " + pattern + " input: " + input 73 assertTrue("Wrong end position: " + pattern + " input: " + input, 101 assertEquals("Wrong pattern", "y'y'yy", f2.toPattern()); 127 assertEquals("Wrong pattern", "'yyyy' MM yy", f2.toPattern()); 153 // that doesn't support localized pattern character [all...] |
H A D | 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}"; 44 format1 = new MessageFormat(pattern); 52 assertEquals("Wrong full time pattern", "{0,time,full}", format 87 String pattern = "getLocale test {0,number,#,####}"; 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}"; 222 String sFormat = MessageFormat.format(pattern, (Object[]) args); 227 pattern [all...] |
/libcore/luni/src/main/java/java/util/ |
H A D | Scanner.java | 43 * radixes. The input is broken into tokens by the delimiter pattern, which is 64 // Default delimiting pattern. 68 // The boolean's pattern. 88 // The pattern matches anything. 315 * Tries to find the pattern in the input. Delimiters are ignored. If the 316 * pattern is found before line terminator, the matched string will be 322 * @param pattern 323 * the pattern to find in the input. 324 * @return the matched string or {@code null} if the pattern is not found 329 public String findInLine(Pattern pattern) { argument 421 findInLine(String pattern) argument 457 findWithinHorizon(Pattern pattern, int horizon) argument 532 findWithinHorizon(String pattern, int horizon) argument 561 hasNext(Pattern pattern) argument 597 hasNext(String pattern) argument 999 next(Pattern pattern) argument 1036 next(String pattern) argument 1573 skip(Pattern pattern) argument 1614 skip(String pattern) argument 1641 useDelimiter(Pattern pattern) argument 1654 useDelimiter(String pattern) argument 1725 checkNull(Pattern pattern) argument [all...] |
/libcore/luni/src/main/java/java/text/ |
H A D | 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 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, 226 * is 3, and the secondary is 2, then this corresponds to the pattern 528 DecimalFormat(String pattern) argument 543 DecimalFormat(String pattern, DecimalFormatSymbols value) argument 549 DecimalFormat(String pattern, Locale locale) argument 554 initNative(String pattern) argument 575 applyLocalizedPattern(String pattern) argument 588 applyPattern(String pattern) argument [all...] |
H A D | SimpleDateFormat.java | 41 * <p>You can supply a pattern describing what strings are produced/accepted, but almost all 51 * The most useful non-localized pattern is {@code "yyyy-MM-dd HH:mm:ss.SSSZ"}, which corresponds 54 * <p>To specify the time format, use a <i>time pattern</i> string. In this 88 * <p>The number of consecutive copies (the "count") of a pattern character further influences 110 * <p>The two pattern characters {@code L} and {@code c} are ICU-compatible extensions, not 208 // The index of 'Z' in the PATTERN_CHARS string. This pattern character is supported by the RI, 219 private String pattern; field in class:SimpleDateFormat 234 this.pattern = defaultPattern(); 240 * non-localized pattern and the {@code DateFormatSymbols} and {@code 244 * @param pattern 252 SimpleDateFormat(String pattern) argument [all...] |
H A D | MessageFormat.java | 38 * inserts the formatted strings into the pattern at the appropriate places. 45 * behavior. Any locale-specific behavior is defined by the pattern that you 131 * table are illegal. A <i>SubformatPattern</i> must be a valid pattern string 282 * example, or by using a pattern (see {@link ChoiceFormat} for more 349 * Constructs a new {@code MessageFormat} using the specified pattern and {@code locale}. 352 * the pattern. 356 * if the pattern cannot be parsed. 364 * Constructs a new {@code MessageFormat} using the specified pattern and 369 * the pattern. 371 * if the pattern canno [all...] |
/libcore/luni/src/main/java/libcore/icu/ |
H A D | NativeDecimalFormat.java | 100 * The last pattern we gave to ICU, so we can make repeated applications cheap. 121 public NativeDecimalFormat(String pattern, DecimalFormatSymbols dfs) { argument 123 this.address = open(pattern, dfs.getCurrencySymbol(), 129 this.lastPattern = pattern; 133 throw new IllegalArgumentException("syntax error: " + re.getMessage() + ": " + pattern); 138 public NativeDecimalFormat(String pattern, LocaleData data) { argument 139 this.address = open(pattern, data.currencySymbol, 144 this.lastPattern = pattern; 269 public void applyLocalizedPattern(String pattern) { argument 270 applyPattern(this.address, true, pattern); 274 applyPattern(String pattern) argument 481 applyPattern(int addr, boolean localized, String pattern) argument 620 applyPatternImpl(int addr, boolean localized, String pattern) argument 628 open(String pattern, String currencySymbol, char decimalSeparator, char digit, String exponentSeparator, char groupingSeparator, String infinity, String internationalCurrencySymbol, char minusSign, char monetaryDecimalSeparator, String nan, char patternSeparator, char percent, char perMill, char zeroDigit) argument [all...] |
/libcore/support/src/test/java/tests/support/ |
H A D | Support_MessageFormat.java | 47 String pattern = "On {4,date} at {3,time}, he ate {2,number, integer} hamburger{2,choice,1#|1<s} and drank {1, number} litres of coke. That was {0,choice,1#just enough|1<more than enough} food!"; 48 MessageFormat format = new MessageFormat(pattern, Locale.US); 74 String pattern = "On {4,date} at {3,time}, he ate {2,number, integer} hamburger{2,choice,1#|1<s} and drank {1, number} litres of coke. That was {0,choice,1#just enough|1<more than enough} food!"; 75 MessageFormat format = new MessageFormat(pattern, Locale.US);
|
/libcore/luni/src/main/native/ |
H A D | java_util_regex_Pattern.cpp | 41 case U_REGEX_RULE_SYNTAX: return "Syntax error in regexp pattern"; 43 case U_REGEX_BAD_ESCAPE_SEQUENCE: return "Unrecognized backslash escape sequence in pattern"; 46 case U_REGEX_MISMATCHED_PAREN: return "Incorrectly nested parentheses in regexp pattern"; 52 case U_REGEX_LOOK_BEHIND_LIMIT: return "Look-behind pattern matches must have a bounded maximum length"; 65 static void throwPatternSyntaxException(JNIEnv* env, UErrorCode status, jstring pattern, UParseError error) { argument 70 jobject exception = env->NewObject(exceptionClass, method, message, pattern, error.offset);
|
H A D | libcore_icu_NativeDecimalFormat.cpp | 115 ScopedJavaUnicodeString pattern(env, pattern0); 121 DecimalFormat* fmt = new DecimalFormat(pattern.unicodeString(), symbols, parseError, status); 195 ScopedJavaUnicodeString pattern(env, pattern0); 201 fmt->applyLocalizedPattern(pattern.unicodeString(), status); 204 fmt->applyPattern(pattern.unicodeString(), status); 211 UnicodeString pattern; local 213 fmt->toLocalizedPattern(pattern); 215 fmt->toPattern(pattern); 217 return env->NewString(pattern.getBuffer(), pattern [all...] |
/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | OldStringTest.java | 221 assertTrue("Returned incorrect string array for pattern: " + 235 String pattern = "[!.1]"; 241 Arrays.equals(results[0], str.split(pattern, 4))); 243 Arrays.equals(results[1], str.split(pattern, 9))); 245 Arrays.equals(results[1], str.split(pattern, 0))); 247 Arrays.equals(results[1], str.split(pattern, -1))); 249 Arrays.equals(results[1], str.split(pattern, 10))); 251 Arrays.equals(results[1], str.split(pattern, Integer.MAX_VALUE)));
|
/libcore/luni/src/main/java/java/net/ |
H A D | ProxySelectorImpl.java | 116 * Returns true if the {@code nonProxyHosts} system property pattern exists 124 // construct pattern 140 String pattern = patternBuilder.toString(); 141 return host.matches(pattern);
|