Home
last modified time | relevance | path

Searched refs:DecimalFormatSymbols (Results 1 – 25 of 130) sorted by relevance

123456

/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/
DDecimalFormatSymbolsTest.java14 import com.ibm.icu.text.DecimalFormatSymbols;
23 DecimalFormatSymbols dfs = new DecimalFormatSymbols(Locale.US); in testHashCode()
24 DecimalFormatSymbols dfs2 = new DecimalFormatSymbols(ULocale.US); in testHashCode()
25 DecimalFormatSymbols dfsn = new DecimalFormatSymbols(Locale.FRANCE); in testHashCode()
40 DecimalFormatSymbols dfs = new DecimalFormatSymbols(); in testDecimalFormatSymbols()
48 DecimalFormatSymbols dfs = new DecimalFormatSymbols(Locale.US); in testDecimalFormatSymbolsLocale()
56 DecimalFormatSymbols dfs = new DecimalFormatSymbols(ULocale.US); in testDecimalFormatSymbolsULocale()
64 DecimalFormatSymbols dfs = new DecimalFormatSymbols(ULocale.US); in testGetZeroDigit()
72 DecimalFormatSymbols dfs = new DecimalFormatSymbols(ULocale.US); in testSetZeroDigit()
85 DecimalFormatSymbols dfs = new DecimalFormatSymbols(ULocale.US); in testGetGroupingSeparator()
[all …]
DDecimalFormatTest.java15 import com.ibm.icu.text.DecimalFormatSymbols;
59 DecimalFormatSymbols sym = new DecimalFormatSymbols(Locale.FRANCE); in testDecimalFormatStringDecimalFormatSymbols()
68 DecimalFormatSymbols sym = new DecimalFormatSymbols(Locale.FRANCE); in testGetDecimalFormatSymbols()
78 df.setDecimalFormatSymbols(new DecimalFormatSymbols(Locale.FRANCE)); in testSetDecimalFormatSymbols()
222 DecimalFormat df = new DecimalFormat("#,##0.##", new DecimalFormatSymbols(Locale.FRANCE)); in testToLocalizedPattern()
240 DecimalFormat df = new DecimalFormat("#,##0.##", new DecimalFormatSymbols(Locale.FRANCE)); in testApplyLocalizedPattern()
/external/icu/icu4c/source/test/intltest/
Dtsdcfmsy.cpp36 DecimalFormatSymbols fr(Locale::getFrench(), status); in testSymbols()
43 DecimalFormatSymbols en(Locale::getEnglish(), status); in testSymbols()
55 UnicodeString zero = en.getSymbol(DecimalFormatSymbols::kZeroDigitSymbol); in testSymbols()
56 fr.setSymbol(DecimalFormatSymbols::kZeroDigitSymbol, zero); in testSymbols()
57 …if(fr.getSymbol(DecimalFormatSymbols::kZeroDigitSymbol) != en.getSymbol(DecimalFormatSymbols::kZer… in testSymbols()
61 UnicodeString group = en.getSymbol(DecimalFormatSymbols::kGroupingSeparatorSymbol); in testSymbols()
62 fr.setSymbol(DecimalFormatSymbols::kGroupingSeparatorSymbol, group); in testSymbols()
63 …if(fr.getSymbol(DecimalFormatSymbols::kGroupingSeparatorSymbol) != en.getSymbol(DecimalFormatSymbo… in testSymbols()
67 UnicodeString decimal = en.getSymbol(DecimalFormatSymbols::kDecimalSeparatorSymbol); in testSymbols()
68 fr.setSymbol(DecimalFormatSymbols::kDecimalSeparatorSymbol, decimal); in testSymbols()
[all …]
Dnumrgts.cpp321 DecimalFormatSymbols *symbols = new DecimalFormatSymbols(status); in Test4087245()
335 …symbols->setSymbol(DecimalFormatSymbols::kDecimalSeparatorSymbol, UnicodeString((UChar)0x70)); // … in Test4087245()
466 DecimalFormatSymbols *dfs = new DecimalFormatSymbols(status); in Test4083018()
864 const DecimalFormatSymbols *sym = df->getDecimalFormatSymbols(); in Test4087244()
865 UnicodeString decSep = sym->getSymbol(DecimalFormatSymbols::kDecimalSeparatorSymbol); in Test4087244()
866 UnicodeString monSep = sym->getSymbol(DecimalFormatSymbols::kMonetarySeparatorSymbol); in Test4087244()
1355 DecimalFormatSymbols *fmt = new DecimalFormatSymbols(status); in Test4061302()
1360 UnicodeString currency(fmt->getSymbol(DecimalFormatSymbols::kCurrencySymbol)); in Test4061302()
1361 UnicodeString intlCurrency(fmt->getSymbol(DecimalFormatSymbols::kIntlCurrencySymbol)); in Test4061302()
1362 UnicodeString monDecSeparator(fmt->getSymbol(DecimalFormatSymbols::kMonetarySeparatorSymbol)); in Test4061302()
[all …]
Dnumfmtspectest.cpp40 upattern, new DecimalFormatSymbols("fr", status), status); in nfWithPattern()
198 upattern, new DecimalFormatSymbols("fr", status), status); in TestPadding()
216 new DecimalFormatSymbols("en_US", status), in TestPadding()
230 DecimalFormatSymbols *sym = new DecimalFormatSymbols("fr", status); in TestPadding()
231 sym->setSymbol(DecimalFormatSymbols::kExponentialSymbol, "EE"); in TestPadding()
261 upattern, new DecimalFormatSymbols("fr_FR", status), status); in assertPatternFr()
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/
DDecimalFormatSymbols.java40 final public class DecimalFormatSymbols implements Cloneable, Serializable { class
47 public final java.text.DecimalFormatSymbols dfs;
52 public DecimalFormatSymbols(java.text.DecimalFormatSymbols delegate) { in DecimalFormatSymbols() method in DecimalFormatSymbols
60 public DecimalFormatSymbols() { in DecimalFormatSymbols() method in DecimalFormatSymbols
61 this(new java.text.DecimalFormatSymbols(ULocale.getDefault(Category.FORMAT).toLocale())); in DecimalFormatSymbols()
69 public DecimalFormatSymbols(Locale locale) { in DecimalFormatSymbols() method in DecimalFormatSymbols
70 this(new java.text.DecimalFormatSymbols(locale)); in DecimalFormatSymbols()
78 public DecimalFormatSymbols(ULocale locale) { in DecimalFormatSymbols() method in DecimalFormatSymbols
79 this(new java.text.DecimalFormatSymbols(locale.toLocale())); in DecimalFormatSymbols()
93 public static DecimalFormatSymbols getInstance() { in getInstance()
[all …]
/external/icu/icu4c/source/i18n/
Ddcfmtsym.cpp48 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(DecimalFormatSymbols)
65 static const char *gNumberElementKeys[DecimalFormatSymbols::kFormatSymbolCount] = {
99 DecimalFormatSymbols::DecimalFormatSymbols(UErrorCode& status) in DecimalFormatSymbols() function in DecimalFormatSymbols
109 DecimalFormatSymbols::DecimalFormatSymbols(const Locale& loc, UErrorCode& status) in DecimalFormatSymbols() function in DecimalFormatSymbols
116 DecimalFormatSymbols::DecimalFormatSymbols() in DecimalFormatSymbols() function in DecimalFormatSymbols
124 DecimalFormatSymbols*
125 DecimalFormatSymbols::createWithLastResortData(UErrorCode& status) { in createWithLastResortData()
127 DecimalFormatSymbols* sym = new DecimalFormatSymbols(); in createWithLastResortData()
136 DecimalFormatSymbols::~DecimalFormatSymbols() in ~DecimalFormatSymbols()
143 DecimalFormatSymbols::DecimalFormatSymbols(const DecimalFormatSymbols &source) in DecimalFormatSymbols() function in DecimalFormatSymbols
[all …]
Ddigitformatter.cpp39 DigitFormatter::DigitFormatter(const DecimalFormatSymbols &symbols) { in DigitFormatter()
45 const DecimalFormatSymbols &symbols) { in setOtherDecimalFormatSymbols()
46 … fLocalizedDigits[0] = symbols.getConstSymbol(DecimalFormatSymbols::kZeroDigitSymbol).char32At(0); in setOtherDecimalFormatSymbols()
47 fLocalizedDigits[1] = symbols.getConstSymbol(DecimalFormatSymbols::kOneDigitSymbol).char32At(0); in setOtherDecimalFormatSymbols()
48 fLocalizedDigits[2] = symbols.getConstSymbol(DecimalFormatSymbols::kTwoDigitSymbol).char32At(0); in setOtherDecimalFormatSymbols()
49 … fLocalizedDigits[3] = symbols.getConstSymbol(DecimalFormatSymbols::kThreeDigitSymbol).char32At(0); in setOtherDecimalFormatSymbols()
50 … fLocalizedDigits[4] = symbols.getConstSymbol(DecimalFormatSymbols::kFourDigitSymbol).char32At(0); in setOtherDecimalFormatSymbols()
51 … fLocalizedDigits[5] = symbols.getConstSymbol(DecimalFormatSymbols::kFiveDigitSymbol).char32At(0); in setOtherDecimalFormatSymbols()
52 fLocalizedDigits[6] = symbols.getConstSymbol(DecimalFormatSymbols::kSixDigitSymbol).char32At(0); in setOtherDecimalFormatSymbols()
53 … fLocalizedDigits[7] = symbols.getConstSymbol(DecimalFormatSymbols::kSevenDigitSymbol).char32At(0); in setOtherDecimalFormatSymbols()
[all …]
Ddecimalformatpattern.cpp108 const DecimalFormatSymbols& symbols) { in useSymbols()
110 DecimalFormatSymbols::kZeroDigitSymbol).char32At(0); in useSymbols()
112 DecimalFormatSymbols::kSignificantDigitSymbol).char32At(0); in useSymbols()
114 DecimalFormatSymbols::kGroupingSeparatorSymbol); in useSymbols()
116 DecimalFormatSymbols::kDecimalSeparatorSymbol); in useSymbols()
118 DecimalFormatSymbols::kPercentSymbol); in useSymbols()
120 DecimalFormatSymbols::kPerMillSymbol); in useSymbols()
122 DecimalFormatSymbols::kDigitSymbol); in useSymbols()
124 DecimalFormatSymbols::kPatternSeparatorSymbol); in useSymbols()
126 DecimalFormatSymbols::kExponentialSymbol); in useSymbols()
[all …]
Ddigitformatter.h27 class DecimalFormatSymbols; variable
133 DigitFormatter(const DecimalFormatSymbols &symbols);
140 void setDecimalFormatSymbols(const DecimalFormatSymbols &symbols);
147 void setDecimalFormatSymbolsForMonetary(const DecimalFormatSymbols &symbols);
239 void setOtherDecimalFormatSymbols(const DecimalFormatSymbols &symbols);
/external/icu/icu4c/source/i18n/unicode/
Ddcfmtsym.h86 class U_I18N_API DecimalFormatSymbols : public UObject {
184 DecimalFormatSymbols(const Locale& locale, UErrorCode& status);
196 DecimalFormatSymbols(UErrorCode& status);
213 static DecimalFormatSymbols* createWithLastResortData(UErrorCode& status);
219 DecimalFormatSymbols(const DecimalFormatSymbols&);
225 DecimalFormatSymbols& operator=(const DecimalFormatSymbols&);
231 virtual ~DecimalFormatSymbols();
240 UBool operator==(const DecimalFormatSymbols& other) const;
249 UBool operator!=(const DecimalFormatSymbols& other) const { return !operator==(other); }
337 DecimalFormatSymbols();
[all …]
/external/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/
DDecimalFormatSymbolsTest.java11 import java.text.DecimalFormatSymbols;
26 for (Locale loc : DecimalFormatSymbols.getAvailableLocales()) { in TestGetInstance()
32 DecimalFormatSymbols decfs = DecimalFormatSymbols.getInstance(loc); in TestGetInstance()
45 DecimalFormatSymbols decfsIcu = DecimalFormatSymbols.getInstance(iculoc); in TestGetInstance()
74 DecimalFormatSymbols jdkDecfs = DecimalFormatSymbols.getInstance(iculoc); in TestICUEquivalent()
75 …com.ibm.icu.text.DecimalFormatSymbols icuDecfs = com.ibm.icu.text.DecimalFormatSymbols.getInstance… in TestICUEquivalent()
115DecimalFormatSymbols decfs = DecimalFormatSymbols.getInstance(TestUtil.toICUExtendedLocale(new Loc… in TestSetSymbols()
119 DecimalFormatSymbols decfsEnUS = DecimalFormatSymbols.getInstance(loc); in TestSetSymbols()
177 DecimalFormatSymbols jdkDecfs = DecimalFormatSymbols.getInstance(loc); in TestKeywords()
178 …com.ibm.icu.text.DecimalFormatSymbols icuDecfs = com.ibm.icu.text.DecimalFormatSymbols.getInstance… in TestKeywords()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DIntlTestDecimalFormatSymbols.java28 import android.icu.text.DecimalFormatSymbols;
38 DecimalFormatSymbols fr = new DecimalFormatSymbols(Locale.FRENCH); in TestSymbols()
40 DecimalFormatSymbols en = new DecimalFormatSymbols(Locale.ENGLISH); in TestSymbols()
229 …for (int i = DecimalFormatSymbols.CURRENCY_SPC_CURRENCY_MATCH; i <= DecimalFormatSymbols.CURRENCY_… in TestSymbols()
241 en.setPatternForCurrencySpacing(DecimalFormatSymbols.CURRENCY_SPC_INSERT, true, dash); in TestSymbols()
242 … if (dash != en.getPatternForCurrencySpacing(DecimalFormatSymbols.CURRENCY_SPC_INSERT, true)) { in TestSymbols()
248 en = (DecimalFormatSymbols) fr.clone(); in TestSymbols()
257 DecimalFormatSymbols df = new DecimalFormatSymbols(); in testCoverage()
258 DecimalFormatSymbols df2 = (DecimalFormatSymbols)df.clone(); in testCoverage()
274 DecimalFormatSymbols symbols = new DecimalFormatSymbols(Locale.ENGLISH); in testDigitSymbols()
DNumberFormatSpecificationTest.java16 import android.icu.text.DecimalFormatSymbols;
132 DecimalFormatSymbols sym = new DecimalFormatSymbols(ULocale.FRANCE); in TestPadding()
140 DecimalFormatSymbols sym = new DecimalFormatSymbols(ULocale.US); in TestPadding()
146 DecimalFormatSymbols sym = new DecimalFormatSymbols(ULocale.FRANCE); in TestPadding()
156 DecimalFormatSymbols sym = new DecimalFormatSymbols(ULocale.FRANCE); in formatFrWithPattern()
162 DecimalFormatSymbols sym = new DecimalFormatSymbols(ULocale.FRANCE); in nfWithPattern()
DIntlTestDecimalFormatSymbolsC.java24 import android.icu.text.DecimalFormatSymbols;
35 DecimalFormatSymbols fr = new DecimalFormatSymbols(Locale.FRENCH); in TestSymbols()
36 DecimalFormatSymbols en = new DecimalFormatSymbols(Locale.ENGLISH); in TestSymbols()
114 en = (DecimalFormatSymbols) fr.clone(); in TestSymbols()
120 DecimalFormatSymbols sym = new DecimalFormatSymbols(Locale.US); in TestSymbols()
134 public void verify(double value, String pattern, DecimalFormatSymbols sym, String expected) { in verify()
DBigNumberFormatTest.java20 import android.icu.text.DecimalFormatSymbols;
33 DecimalFormatSymbols US = new DecimalFormatSymbols(Locale.US); in TestExponent()
49 DecimalFormatSymbols US = new DecimalFormatSymbols(Locale.US); in TestSecondaryGrouping()
98 DecimalFormatSymbols US = new DecimalFormatSymbols(Locale.US); in TestPatterns()
165 DecimalFormatSymbols US = new DecimalFormatSymbols(Locale.US); in TestAlphaBigDecimal()
187 DecimalFormatSymbols US = new DecimalFormatSymbols(Locale.US); in TestScientific()
265 DecimalFormatSymbols US = new DecimalFormatSymbols(Locale.US); in TestPad()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DIntlTestDecimalFormatSymbols.java27 import com.ibm.icu.text.DecimalFormatSymbols;
37 DecimalFormatSymbols fr = new DecimalFormatSymbols(Locale.FRENCH); in TestSymbols()
39 DecimalFormatSymbols en = new DecimalFormatSymbols(Locale.ENGLISH); in TestSymbols()
228 …for (int i = DecimalFormatSymbols.CURRENCY_SPC_CURRENCY_MATCH; i <= DecimalFormatSymbols.CURRENCY_… in TestSymbols()
240 en.setPatternForCurrencySpacing(DecimalFormatSymbols.CURRENCY_SPC_INSERT, true, dash); in TestSymbols()
241 … if (dash != en.getPatternForCurrencySpacing(DecimalFormatSymbols.CURRENCY_SPC_INSERT, true)) { in TestSymbols()
247 en = (DecimalFormatSymbols) fr.clone(); in TestSymbols()
256 DecimalFormatSymbols df = new DecimalFormatSymbols(); in testCoverage()
257 DecimalFormatSymbols df2 = (DecimalFormatSymbols)df.clone(); in testCoverage()
273 DecimalFormatSymbols symbols = new DecimalFormatSymbols(Locale.ENGLISH); in testDigitSymbols()
DNumberFormatSpecificationTest.java15 import com.ibm.icu.text.DecimalFormatSymbols;
131 DecimalFormatSymbols sym = new DecimalFormatSymbols(ULocale.FRANCE); in TestPadding()
139 DecimalFormatSymbols sym = new DecimalFormatSymbols(ULocale.US); in TestPadding()
145 DecimalFormatSymbols sym = new DecimalFormatSymbols(ULocale.FRANCE); in TestPadding()
155 DecimalFormatSymbols sym = new DecimalFormatSymbols(ULocale.FRANCE); in formatFrWithPattern()
161 DecimalFormatSymbols sym = new DecimalFormatSymbols(ULocale.FRANCE); in nfWithPattern()
DIntlTestDecimalFormatSymbolsC.java23 import com.ibm.icu.text.DecimalFormatSymbols;
34 DecimalFormatSymbols fr = new DecimalFormatSymbols(Locale.FRENCH); in TestSymbols()
35 DecimalFormatSymbols en = new DecimalFormatSymbols(Locale.ENGLISH); in TestSymbols()
113 en = (DecimalFormatSymbols) fr.clone(); in TestSymbols()
119 DecimalFormatSymbols sym = new DecimalFormatSymbols(Locale.US); in TestSymbols()
133 public void verify(double value, String pattern, DecimalFormatSymbols sym, String expected) { in verify()
DBigNumberFormatTest.java19 import com.ibm.icu.text.DecimalFormatSymbols;
32 DecimalFormatSymbols US = new DecimalFormatSymbols(Locale.US); in TestExponent()
48 DecimalFormatSymbols US = new DecimalFormatSymbols(Locale.US); in TestSecondaryGrouping()
97 DecimalFormatSymbols US = new DecimalFormatSymbols(Locale.US); in TestPatterns()
164 DecimalFormatSymbols US = new DecimalFormatSymbols(Locale.US); in TestAlphaBigDecimal()
186 DecimalFormatSymbols US = new DecimalFormatSymbols(Locale.US); in TestScientific()
264 DecimalFormatSymbols US = new DecimalFormatSymbols(Locale.US); in TestPad()
DNumberFormatTest.java43 import com.ibm.icu.text.DecimalFormatSymbols;
165 new DecimalFormatSymbols(tuple.locale == null ? EN : tuple.locale));
344 new java.text.DecimalFormatSymbols(
610 DecimalFormatSymbols sym = new DecimalFormatSymbols(Locale.US); in TestPatterns()
645 DecimalFormatSymbols sym = new DecimalFormatSymbols(Locale.US); in TestExponential()
738 DecimalFormatSymbols sym = new DecimalFormatSymbols(Locale.US); in TestQuotes()
777 DecimalFormatSymbols sym = new DecimalFormatSymbols(Locale.US); in TestCurrencySign()
872 DecimalFormatSymbols sym = new DecimalFormatSymbols(new ULocale(locale)); in TestMultiCurrencySign()
945 DecimalFormatSymbols sym = new DecimalFormatSymbols(Locale.US); in TestDecimalFormatCurrencyParse()
1381 DecimalFormatSymbols US = new DecimalFormatSymbols(Locale.US); in TestSecondaryGrouping()
[all …]
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/
DDecimalFormatSymbolsICU.java13 import com.ibm.icu.text.DecimalFormatSymbols;
19 public class DecimalFormatSymbolsICU extends java.text.DecimalFormatSymbols {
23 private DecimalFormatSymbols fIcuDecfs;
25 private DecimalFormatSymbolsICU(DecimalFormatSymbols icuDecfs) { in DecimalFormatSymbolsICU()
29 public static java.text.DecimalFormatSymbols wrap(DecimalFormatSymbols icuDecfs) { in wrap()
33 public DecimalFormatSymbols unwrap() { in unwrap()
40 other.fIcuDecfs = (DecimalFormatSymbols)fIcuDecfs.clone(); in clone()
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/javaspi/text/
DDecimalFormatSymbolsProviderICU.java11 import java.text.DecimalFormatSymbols;
22 public DecimalFormatSymbols getInstance(Locale locale) { in getInstance()
23 …com.ibm.icu.text.DecimalFormatSymbols icuDecfs = com.ibm.icu.text.DecimalFormatSymbols.getInstance( in getInstance()
/external/caliper/examples/src/main/java/examples/
DExpensiveObjectsBenchmark.java20 import java.text.DecimalFormatSymbols;
32 new DecimalFormatSymbols(Locale.US); in newDecimalFormatSymbols()
37 DecimalFormatSymbols dfs = new DecimalFormatSymbols(Locale.US); in clonedDecimalFormatSymbols()
/external/apache-xml/src/main/java/org/apache/xalan/templates/
DDecimalFormatProperties.java23 import java.text.DecimalFormatSymbols;
54 DecimalFormatSymbols m_dfs;
63 m_dfs = new java.text.DecimalFormatSymbols(); in DecimalFormatProperties()
91 public DecimalFormatSymbols getDecimalFormatSymbols() in getDecimalFormatSymbols()

123456