/openjdk9/jdk/test/java/text/Format/NumberFormat/ |
H A D | BigDecimalFormat.java | 96 StringBuffer formatted = new StringBuffer(1000); field in class:BigDecimalFormat 111 formatted.setLength(0); 113 nf.format(new BigDecimal(from), formatted, new FieldPosition(0)); 114 checkFormat(from, formatted, from, ((DecimalFormat)nf).getMultiplier()); 122 formatted.setLength(0); 124 nf.format(new BigDecimal(from), formatted, fp); 125 checkFormat(from, formatted, from, ((DecimalFormat)nf).getMultiplier()); 134 formatted.setLength(0); 137 nf.format(new BigDecimal(from), formatted, fp); 138 checkFormat(from, formatted, t [all...] |
H A D | MultipleNumberScriptTest.java | 76 String formatted = nf.format(num); 78 num, formatted, locales[i], expectedNumSystem[i]); 79 if (!checkResult(formatted, expectedNumSystem[i])) { 85 static boolean checkResult(String formatted, String numSystem) { argument 88 return formatted.charAt(0) == '\u0661'; 90 return formatted.charAt(0) == '1'; 92 return formatted.charAt(0) == '\u0e51';
|
H A D | Bug4838107.java | 201 String formatted = df.format(num); 202 if (!formatted.equals(str)) { 208 "\n\tgot: " + formatted + 218 parsed1 = df.parse(formatted); 219 formatted = df.format(parsed1); 220 parsed2 = df.parse(formatted); 228 "\n\tformatted number: " + formatted + 242 "\n\tformatted number: " + formatted +
|
/openjdk9/jdk/src/java.base/share/classes/jdk/internal/jimage/decompressor/ |
H A D | SignatureParser.java | 46 public String formatted; field in class:SignatureParser.ParseResult 52 public static String reconstruct(String formatted, List<String> arguments) { argument 54 char[] chars = formatted.toCharArray(); 83 StringBuilder formatted = new StringBuilder(); 102 formatted.append(c); 110 formatted.append(c); 118 formatted.append(c); 126 res.formatted = formatted.toString();
|
/openjdk9/jdk/src/java.base/share/classes/java/text/ |
H A D | DontCareFieldPosition.java | 38 public void formatted(Format.Field attr, Object value, int start, 41 public void formatted(int fieldID, Format.Field attr, Object value,
|
H A D | CharacterIteratorFieldDelegate.java | 38 * Array of AttributeStrings. Whenever <code>formatted</code> is invoked 40 * attributedStrings. Subsequent invocations of <code>formatted</code> 56 public void formatted(Format.Field attr, Object value, int start, int end, method in class:CharacterIteratorFieldDelegate 95 public void formatted(int fieldID, Format.Field attr, Object value, method in class:CharacterIteratorFieldDelegate 97 formatted(attr, value, start, end, buffer); 102 * to iterate over the resulting formatted String.
|
H A D | Format.java | 55 * any string formatted by its <code>format</code> method. However, there may 111 * fields in the formatted output. These constants are used to create a FieldPosition 113 * position in the formatted result. These constants should be named 171 * in the formatted text 173 * with formatted text appended 203 * @return AttributedCharacterIterator describing the formatted value. 368 * storage of the individual sections of the formatted String for 380 * Notified when a particular region of the String is formatted. This 388 * @param buffer Contains current formatted value, receiver should 391 public void formatted(Forma method in interface:Format.FieldDelegate 405 public void formatted(int fieldID, Format.Field attr, Object value, method in interface:Format.FieldDelegate [all...] |
H A D | FieldPosition.java | 43 * and its subclasses to identify fields in formatted output. Fields can 54 * field within the formatted output with two indices: the index 63 * formatted output (such as the position of a field). 67 * formatted string use the <code>Format</code> method 292 * is true, and <code>formatted</code> is invoked, the begin/end 297 public void formatted(Format.Field attr, Object value, int start, method in class:FieldPosition.Delegate 306 public void formatted(int fieldID, Format.Field attr, Object value, method in class:FieldPosition.Delegate
|
H A D | DecimalFormat.java | 267 * formatted using the localized minus sign, <em>not</em> the prefix and suffix 284 * exponent. Example: 0.00123 formatted with <code>"00.###E0"</code> yields 290 * unaffected by the maximum integer digits. For example, 12345 formatted with 314 * <p><code>NaN</code> is formatted as a string, which typically has a single character 319 * <p>Infinity is formatted as a string, which typically has a single character 481 * @param toAppendTo the <code>StringBuffer</code> to which the formatted 526 * @return The formatted number string 561 * @return The formatted number string 569 delegate.formatted(INTEGER_FIELD, Field.INTEGER, Field.INTEGER, 601 delegate.formatted(INTEGER_FIEL [all...] |
/openjdk9/jdk/test/tools/jlink/plugins/ |
H A D | SignatureParserTest.java | 184 private void test(String type, String formatted, String...classNames) { argument 188 assertEquals(result.formatted, formatted, "Input: '" + type + "', checking 'formatted'"); 200 String reconstructed = SignatureParser.reconstruct(result.formatted, result.types); 202 + result.formatted + " " + result.types);
|
/openjdk9/jdk/test/java/util/logging/ |
H A D | XMLFormatterDate.java | 124 final String formatted = formatter.format(record); 125 System.out.println(formatted); 135 if (!formatted.contains(buf2.toString())) { 138 if (formatted.contains(buf1) && year2 == year1 + 1 144 + " not found in log:\n" + formatted);
|
/openjdk9/jdk/test/java/util/PluggableLocale/ |
H A D | CurrencyNameProviderTest.java | 125 String formatted; field in class:CurrencyNameProviderTest 133 System.out.println(formatted = df.format(i)); 134 if(!formatted.equals(YEN_IN_OSAKA)) { 135 throw new RuntimeException("formatted currency names mismatch. " + 143 System.out.println(formatted = df.format(i)); 144 if(!formatted.equals(YEN_IN_KYOTO)) { 145 throw new RuntimeException("formatted currency names mismatch. " + 153 System.out.println(formatted = df.format(i)); 154 if(!formatted.equals(YEN_IN_TOKYO)) { 155 throw new RuntimeException("formatted currenc [all...] |
H A D | TimeZoneNameProviderTest.java | 123 String formatted; 134 System.out.println(formatted = df.format(d)); 135 if(!formatted.equals(DISPLAY_NAMES_OSAKA[i])) { 137 ": formatted zone names mismatch. " + 138 formatted + " should match with " + 146 System.out.println(formatted = df.format(d)); 147 if(!formatted.equals(DISPLAY_NAMES_KYOTO[i])) { 149 ": formatted zone names mismatch. " + 150 formatted + " should match with " +
|
/openjdk9/jdk/test/javax/swing/JFormattedTextField/7070795/ |
H A D | JFormattedTextFieldTest.java | 109 JFormattedTextField formatted = new JFormattedTextField(format); 110 formatted.setText("67891"); 113 resultButtonPanel.add(formatted, gbc);
|
/openjdk9/jdk/test/java/text/Format/DecimalFormat/ |
H A D | RoundingAndPropertyTest.java | 67 * it provides a message informing which value was wrongly formatted. 78 * (value, exact decimal value (using BidDecimal), expected result, formatted result). 85 * ints of the chars in the expected formatted string, when using locale 206 "// The formatted values below were generated from golden values"); 243 String formatted = df.format(d); 244 char[] decFmtChars = formatted.toCharArray(); 269 String formatted = df.format(d); 270 char[] decFmtChars = formatted.toCharArray(); 296 String formatted = cf.format(d); 297 char[] decFmtChars = formatted [all...] |
/openjdk9/jdk/src/jdk.internal.opt/share/classes/jdk/internal/joptsimple/ |
H A D | BuiltinHelpFormatter.java | 122 StringBuilder formatted = new StringBuilder(); 125 formatted.append( nonOptionDisplay ).append( LINE_SEPARATOR ); 126 formatted.append( optionRows.render() ); 128 return formatted.toString();
|
/openjdk9/jdk/test/java/util/Locale/ |
H A D | LocaleProviders.java | 242 char formatted = nf.format(7000).charAt(0); 243 System.out.println("returned: " + formatted + ", expected: " + expectedSymbol[0]); 244 if (formatted != expectedSymbol[0]) { 245 throw new RuntimeException("Unexpected Chinese currency symbol. returned: " + formatted + ", expected: " + expectedSymbol[0]);
|
/openjdk9/jdk/test/java/time/tck/java/time/format/ |
H A D | TCKLocalizedPrinterParser.java | 134 String formatted = f.format(date); 135 assertEquals(formatted, text); 187 String formatted = f.format(time); 188 assertEquals(formatted, text);
|
/openjdk9/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/parser/ |
H A D | AbstractParser.java | 271 final String formatted = ErrorManager.format(message, source, lineNum, columnNum, errorToken); 272 return new ParserException(errorType, formatted, source, lineNum, columnNum, errorToken); 296 final String formatted = ErrorManager.format(message, source, line, column, token); 297 return new ParserException(errorType, formatted, source, line, column, token);
|
H A D | JSONParser.java | 528 final String formatted = ErrorManager.format(message, src, lineNum, columnNum, token); 529 return new ParserException(JSErrorType.SYNTAX_ERROR, formatted, src, lineNum, columnNum, token);
|
H A D | Lexer.java | 1877 final String formatted = ErrorManager.format(message, source, lineNum, columnNum, token); 1878 throw new ParserException(JSErrorType.SYNTAX_ERROR, formatted, source, lineNum, columnNum, token);
|
/openjdk9/langtools/test/tools/javac/T5090006/ |
H A D | broken.jar | ... void failSame (java.lang.String)
String message
String formatted
private static void failNotSame (java.lang.String, java ... |
/openjdk9/jdk/test/java/text/Format/MessageFormat/ |
H A D | MessageRegression.java | 434 String formatted = prefix + "YES"; 437 Object[] objs = mf.parse(formatted, new ParsePosition(0)); 439 log(" \"" + formatted + "\" parsed as "); 501 logln(" (incorrectly formatted string)"); 505 logln(" (correctly formatted string)");
|
/openjdk9/jdk/test/java/text/Format/DateFormat/ |
H A D | DateFormatRegression.java | 196 String formatted = fmt.format( o ); 197 logln( "Formatted string: " + formatted ); 198 if (!formatted.equals(str)) errln("Fail: Want " + str + " Got " + formatted); 326 US locale a string formatted according to mm/dd/yy and parses it
|
H A D | DateFormatTest.java | 402 String formatted = fmt.format( o ); 403 logln( "Formatted string: " + formatted ); 404 if (!formatted.equals(str)) {
|