Lines Matching refs:DecimalFormatSymbols
38 DecimalFormatSymbols fr(Locale::getFrench(), status); in testSymbols()
45 DecimalFormatSymbols en(Locale::getEnglish(), status); in testSymbols()
57 UnicodeString zero = en.getSymbol(DecimalFormatSymbols::kZeroDigitSymbol); in testSymbols()
58 fr.setSymbol(DecimalFormatSymbols::kZeroDigitSymbol, zero); in testSymbols()
59 …if(fr.getSymbol(DecimalFormatSymbols::kZeroDigitSymbol) != en.getSymbol(DecimalFormatSymbols::kZer… in testSymbols()
63 UnicodeString group = en.getSymbol(DecimalFormatSymbols::kGroupingSeparatorSymbol); in testSymbols()
64 fr.setSymbol(DecimalFormatSymbols::kGroupingSeparatorSymbol, group); in testSymbols()
65 …if(fr.getSymbol(DecimalFormatSymbols::kGroupingSeparatorSymbol) != en.getSymbol(DecimalFormatSymbo… in testSymbols()
69 UnicodeString decimal = en.getSymbol(DecimalFormatSymbols::kDecimalSeparatorSymbol); in testSymbols()
70 fr.setSymbol(DecimalFormatSymbols::kDecimalSeparatorSymbol, decimal); in testSymbols()
71 …if(fr.getSymbol(DecimalFormatSymbols::kDecimalSeparatorSymbol) != en.getSymbol(DecimalFormatSymbol… in testSymbols()
75 UnicodeString perMill = en.getSymbol(DecimalFormatSymbols::kPerMillSymbol); in testSymbols()
76 fr.setSymbol(DecimalFormatSymbols::kPerMillSymbol, perMill); in testSymbols()
77 …if(fr.getSymbol(DecimalFormatSymbols::kPerMillSymbol) != en.getSymbol(DecimalFormatSymbols::kPerMi… in testSymbols()
81 UnicodeString percent = en.getSymbol(DecimalFormatSymbols::kPercentSymbol); in testSymbols()
82 fr.setSymbol(DecimalFormatSymbols::kPercentSymbol, percent); in testSymbols()
83 …if(fr.getSymbol(DecimalFormatSymbols::kPercentSymbol) != en.getSymbol(DecimalFormatSymbols::kPerce… in testSymbols()
87 UnicodeString digit(en.getSymbol(DecimalFormatSymbols::kDigitSymbol)); in testSymbols()
88 fr.setSymbol(DecimalFormatSymbols::kDigitSymbol, digit); in testSymbols()
89 …if(fr.getSymbol(DecimalFormatSymbols::kDigitSymbol) != en.getSymbol(DecimalFormatSymbols::kDigitSy… in testSymbols()
93 UnicodeString patternSeparator = en.getSymbol(DecimalFormatSymbols::kPatternSeparatorSymbol); in testSymbols()
94 fr.setSymbol(DecimalFormatSymbols::kPatternSeparatorSymbol, patternSeparator); in testSymbols()
95 …if(fr.getSymbol(DecimalFormatSymbols::kPatternSeparatorSymbol) != en.getSymbol(DecimalFormatSymbol… in testSymbols()
99 UnicodeString infinity(en.getSymbol(DecimalFormatSymbols::kInfinitySymbol)); in testSymbols()
100 fr.setSymbol(DecimalFormatSymbols::kInfinitySymbol, infinity); in testSymbols()
101 UnicodeString infinity2(fr.getSymbol(DecimalFormatSymbols::kInfinitySymbol)); in testSymbols()
106 UnicodeString nan(en.getSymbol(DecimalFormatSymbols::kNaNSymbol)); in testSymbols()
107 fr.setSymbol(DecimalFormatSymbols::kNaNSymbol, nan); in testSymbols()
108 UnicodeString nan2(fr.getSymbol(DecimalFormatSymbols::kNaNSymbol)); in testSymbols()
113 UnicodeString minusSign = en.getSymbol(DecimalFormatSymbols::kMinusSignSymbol); in testSymbols()
114 fr.setSymbol(DecimalFormatSymbols::kMinusSignSymbol, minusSign); in testSymbols()
115 …if(fr.getSymbol(DecimalFormatSymbols::kMinusSignSymbol) != en.getSymbol(DecimalFormatSymbols::kMin… in testSymbols()
119 UnicodeString exponential(en.getSymbol(DecimalFormatSymbols::kExponentialSymbol)); in testSymbols()
120 fr.setSymbol(DecimalFormatSymbols::kExponentialSymbol, exponential); in testSymbols()
121 …if(fr.getSymbol(DecimalFormatSymbols::kExponentialSymbol) != en.getSymbol(DecimalFormatSymbols::kE… in testSymbols()
172 DecimalFormatSymbols foo(status); in testSymbols()
174 DecimalFormatSymbols bar(foo); in testSymbols()
183 if((int) UNUM_FORMAT_SYMBOL_COUNT != (int) DecimalFormatSymbols::kFormatSymbolCount) { in testSymbols()
189 for(i = 0; i < (int)DecimalFormatSymbols::kFormatSymbolCount; ++i) { in testSymbols()
190 …foo.setSymbol((DecimalFormatSymbols::ENumberFormatSymbol)i, UnicodeString((UChar32)(0x10330 + i))); in testSymbols()
192 for(i = 0; i < (int)DecimalFormatSymbols::kFormatSymbolCount; ++i) { in testSymbols()
193 …if(foo.getSymbol((DecimalFormatSymbols::ENumberFormatSymbol)i) != UnicodeString((UChar32)(0x10330 … in testSymbols()
195 foo.getSymbol((DecimalFormatSymbols::ENumberFormatSymbol)i) + in testSymbols()
201 DecimalFormatSymbols sym(Locale::getUS(), status); in testSymbols()
205 sym.setSymbol(DecimalFormatSymbols::kDecimalSeparatorSymbol, customDecSeperator); in testSymbols()
207 sym.setSymbol(DecimalFormatSymbols::kPercentSymbol, u"P"); in testSymbols()
209 sym.setSymbol(DecimalFormatSymbols::kCurrencySymbol, u"D"); in testSymbols()
211 sym.setSymbol(DecimalFormatSymbols::kGroupingSeparatorSymbol, u"|"); in testSymbols()
218 LocalPointer<DecimalFormatSymbols> lastResort( in testLastResortData()
219 DecimalFormatSymbols::createWithLastResortData(errorCode)); in testLastResortData()
223 DecimalFormatSymbols root(Locale::getRoot(), errorCode); in testLastResortData()
235 "", lastResort->getSymbol(DecimalFormatSymbols::kGroupingSeparatorSymbol)); in testLastResortData()
236 lastResort->setSymbol(DecimalFormatSymbols::kGroupingSeparatorSymbol, ","); in testLastResortData()
238 "", lastResort->getSymbol(DecimalFormatSymbols::kMonetaryGroupingSeparatorSymbol)); in testLastResortData()
239 lastResort->setSymbol(DecimalFormatSymbols::kMonetaryGroupingSeparatorSymbol, ","); in testLastResortData()
241 … UnicodeString((UChar)0xfffd), lastResort->getSymbol(DecimalFormatSymbols::kNaNSymbol)); in testLastResortData()
242 lastResort->setSymbol(DecimalFormatSymbols::kNaNSymbol, "NaN"); in testLastResortData()
244 for(int32_t i = 0; i < DecimalFormatSymbols::kFormatSymbolCount; ++i) { in testLastResortData()
245 DecimalFormatSymbols::ENumberFormatSymbol e = (DecimalFormatSymbols::ENumberFormatSymbol)i; in testLastResortData()
264 DecimalFormatSymbols symbols(Locale("en"), status); in testDigitSymbols()
276 DecimalFormatSymbols::ENumberFormatSymbol key = in testDigitSymbols()
278 ? DecimalFormatSymbols::kZeroDigitSymbol in testDigitSymbols()
279 : static_cast<DecimalFormatSymbols::ENumberFormatSymbol> in testDigitSymbols()
280 (DecimalFormatSymbols::kOneDigitSymbol + i - 1); in testDigitSymbols()
296 DecimalFormatSymbols::kZeroDigitSymbol, in testDigitSymbols()
308 DecimalFormatSymbols copy(symbols); in testDigitSymbols()
319 DecimalFormatSymbols fromData(Locale("en@numbers=osma"), status); in testDigitSymbols()
330 symbols.setSymbol(DecimalFormatSymbols::kOneDigitSymbol, u"foo", FALSE); in testDigitSymbols()
337 DecimalFormatSymbols::kZeroDigitSymbol, in testDigitSymbols()
380 DecimalFormatSymbols dfs(loc, *ns, errorCode); in testNumberingSystem()
386 UnicodeString actual2 = dfs.getSymbol(DecimalFormatSymbols::kPercentSymbol); in testNumberingSystem()
394 … const DecimalFormatSymbols &sym, const UnicodeString& expected){ in Verify()