Searched refs:symbols (Results 1 - 12 of 12) sorted by relevance
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
H A D | DecimalFormatSymbolsTest.java | 57 assertEquals("Returned incorrect symbols", '%', dfs.getPercent()); 99 DecimalFormatSymbols symbols = DecimalFormatSymbols.getInstance(locale); 100 assertNotNull(symbols); 457 DecimalFormatSymbols symbols = new DecimalFormatSymbols(Locale.FRANCE); 458 Currency currency = symbols.getCurrency(); 464 objectOStream.writeObject(symbols); 539 DecimalFormatSymbols symbols = new DecimalFormatSymbols(Locale.US); 540 symbols.setExponentSeparator("EE"); 541 symbols.setNaN("NaN"); 542 SerializationTest.verifyGolden(this, symbols); [all...] |
H A D | DateFormatSymbolsTest.java | 87 DateFormatSymbols symbols = DateFormatSymbols.getInstance(locale); 88 assertEquals(DateFormatSymbols.getInstance(Locale.ROOT), symbols); 96 DateFormatSymbols symbols = new DateFormatSymbols(); 97 DateFormatSymbols clone = (DateFormatSymbols) symbols.clone(); 98 assertTrue("Not equal", symbols.equals(clone)); 404 DateFormatSymbols symbols = new DateFormatSymbols(Locale.FRANCE); 405 String[][] zoneStrings = symbols.getZoneStrings(); 411 objectOStream.writeObject(symbols); 421 assertEquals(symbols, symbolsD);
|
H A D | SimpleDateFormatTest.java | 52 assertTrue("Wrong symbols", f2.getDateFormatSymbols().equals(new DateFormatSymbols())); 62 assertTrue("Wrong symbols", f2.getDateFormatSymbols().equals(new DateFormatSymbols())); 85 DateFormatSymbols symbols = new DateFormatSymbols(Locale.ENGLISH); 86 symbols.setEras(new String[] { "Before", "After" }); 87 SimpleDateFormat f2 = new SimpleDateFormat("y'y'yy", symbols); 90 assertTrue("Wrong symbols", f2.getDateFormatSymbols().equals(symbols)); 94 new SimpleDateFormat(null, symbols); 100 new SimpleDateFormat("eee", symbols); 112 assertTrue("Wrong symbols", f [all...] |
H A D | DecimalFormatTest.java | 144 DecimalFormatSymbols symbols = new DecimalFormatSymbols(); 145 number = form.parse(symbols.getNaN(), new ParsePosition(0)); 153 symbols = new DecimalFormatSymbols(); 154 number = form.parse(symbols.getInfinity(), new ParsePosition(0)); 202 symbols = new DecimalFormatSymbols(); 203 number = form.parse(symbols.getNaN() + "", new ParsePosition(0)); 207 number = form.parse(symbols.getNaN() + "", new ParsePosition(0)); 214 symbols = new DecimalFormatSymbols(); 216 number = form.parse(symbols.getInfinity(), new ParsePosition(0)); 223 symbols [all...] |
/libcore/ojluni/src/main/java/java/text/ |
H A D | DecimalFormat.java | 84 * <em>symbols</em>. The pattern may be set directly using 86 * symbols are stored in a <code>DecimalFormatSymbols</code> object. When using 87 * the <code>NumberFormat</code> factory methods, the pattern and symbols are 141 * <p>The prefixes, suffixes, and various symbols used for infinity, digits, 144 * be taken that the symbols and strings do not conflict, or parsing will be 385 * Creates a DecimalFormat using the default pattern and symbols 409 this.symbols = new DecimalFormatSymbols(def); 415 * Creates a DecimalFormat using the given pattern and the symbols 433 this.symbols = new DecimalFormatSymbols(Locale.getDefault(Locale.Category.FORMAT)); 439 * Creates a DecimalFormat using the given pattern and symbols 459 DecimalFormat(String pattern, DecimalFormatSymbols symbols) argument 1584 private DecimalFormatSymbols symbols; field in class:DecimalFormat [all...] |
H A D | NumberFormat.java | 758 DecimalFormatSymbols symbols = DecimalFormatSymbols.getInstance(desiredLocale); 760 DecimalFormat format = new DecimalFormat(numberPatterns[entry], symbols);
|
/libcore/luni/src/test/java/libcore/java/text/ |
H A D | OldDecimalFormatSymbolsTest.java | 36 DecimalFormatSymbols symbols = new DecimalFormatSymbols(Locale.FRANCE); 47 assertEquals(symbols, riSymbols);
|
H A D | SimpleDateFormatTest.java | 457 DateFormatSymbols symbols = DateFormatSymbols.getInstance(Locale.ENGLISH); 458 String[][] zoneStrings = symbols.getZoneStrings(); 461 symbols.setZoneStrings(zoneStrings); 462 SimpleDateFormat sdf = new SimpleDateFormat("zzzz", symbols); 470 symbols.setZoneStrings(zoneStrings); 471 sdf = new SimpleDateFormat("zzzz", symbols); 477 symbols.setZoneStrings(zoneStrings); 478 sdf = new SimpleDateFormat("zzzz", symbols);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | CalendarTest.java | 798 DateFormatSymbols symbols = new DateFormatSymbols(locale); 803 value = symbols.getAmPmStrings()[0]; 809 value = symbols.getAmPmStrings()[1]; 817 value = symbols.getEras()[0]; 823 value = symbols.getEras()[1]; 833 value = symbols.getShortMonths()[month]; 836 value = symbols.getMonths()[month]; 844 value = symbols.getShortWeekdays()[day]; 847 value = symbols.getWeekdays()[day]; 962 DateFormatSymbols symbols [all...] |
/libcore/ojluni/src/main/java/java/util/ |
H A D | Calendar.java | 1400 DateFormatSymbols symbols = DateFormatSymbols.getInstance(locale); 1401 String[] strings = getFieldStrings(field, style, symbols); 1482 DateFormatSymbols symbols = DateFormatSymbols.getInstance(locale); 1483 String[] strings = getFieldStrings(field, style, symbols); 1509 private String[] getFieldStrings(int field, int style, DateFormatSymbols symbols) { argument 1513 strings = symbols.getEras(); 1517 strings = (style == LONG) ? symbols.getMonths() : symbols.getShortMonths(); 1521 strings = (style == LONG) ? symbols.getWeekdays() : symbols [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
H A D | FormatterTest.java | 203 DecimalFormatSymbols symbols = decimalFormat.getDecimalFormatSymbols(); 204 assertTrue(symbols.getGroupingSeparator() != '\0');
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
H A D | SerializationStressTest.java | 183 java.text.DateFormatSymbols symbols = new java.text.DateFormatSymbols(); 184 symbols.setZoneStrings(new String[][] { { "a", "b", "c", "d", "e" }, 186 ((java.text.SimpleDateFormat) DATEFORM).setDateFormatSymbols(symbols);
|
Completed in 414 milliseconds