Searched refs:formatted (Results 1 - 25 of 32) sorted by relevance

12

/openjdk9/jdk/test/java/text/Format/NumberFormat/
H A DBigDecimalFormat.java96 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 DMultipleNumberScriptTest.java76 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 DBug4838107.java201 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 DSignatureParser.java46 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 DDontCareFieldPosition.java38 public void formatted(Format.Field attr, Object value, int start,
41 public void formatted(int fieldID, Format.Field attr, Object value,
H A DCharacterIteratorFieldDelegate.java38 * 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 DFormat.java55 * 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 DFieldPosition.java43 * 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 DDecimalFormat.java267 * 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 DSignatureParserTest.java184 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 DXMLFormatterDate.java124 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 DCurrencyNameProviderTest.java125 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 DTimeZoneNameProviderTest.java123 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 DJFormattedTextFieldTest.java109 JFormattedTextField formatted = new JFormattedTextField(format);
110 formatted.setText("67891");
113 resultButtonPanel.add(formatted, gbc);
/openjdk9/jdk/test/java/text/Format/DecimalFormat/
H A DRoundingAndPropertyTest.java67 * 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 DBuiltinHelpFormatter.java122 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 DLocaleProviders.java242 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 DTCKLocalizedPrinterParser.java134 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 DAbstractParser.java271 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 DJSONParser.java528 final String formatted = ErrorManager.format(message, src, lineNum, columnNum, token);
529 return new ParserException(JSErrorType.SYNTAX_ERROR, formatted, src, lineNum, columnNum, token);
H A DLexer.java1877 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 Dbroken.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 DMessageRegression.java434 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 DDateFormatRegression.java196 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 DDateFormatTest.java402 String formatted = fmt.format( o );
403 logln( "Formatted string: " + formatted );
404 if (!formatted.equals(str)) {

Completed in 282 milliseconds

12