• Home
  • Raw
  • Download

Lines Matching refs:pat

81     DecimalFormat pat(pattern, status);  in testAPI()  local
106 DecimalFormat copy(pat); in testAPI()
112 if( ! (copy == pat) || copy != pat) { in testAPI()
142 res2 = pat.format(l, res2, pos2); in testAPI()
168 pat.applyPattern(patt, status); in testAPI()
172 pat.parse(text, result1, pos); in testAPI()
179 pat.parse(text, result2, status); in testAPI()
192 const DecimalFormatSymbols *syms = pat.getDecimalFormatSymbols(); in testAPI()
196 if( *(pat.getDecimalFormatSymbols()) != *(def.getDecimalFormatSymbols())) { in testAPI()
201 pat.setPositivePrefix("+"); in testAPI()
202 posPrefix = pat.getPositivePrefix(posPrefix); in testAPI()
209 pat.setNegativePrefix("-"); in testAPI()
210 negPrefix = pat.getNegativePrefix(negPrefix); in testAPI()
217 pat.setPositiveSuffix("_"); in testAPI()
218 posSuffix = pat.getPositiveSuffix(posSuffix); in testAPI()
225 pat.setNegativeSuffix("~"); in testAPI()
226 negSuffix = pat.getNegativeSuffix(negSuffix); in testAPI()
233 pat.setMultiplier(8); in testAPI()
234 multiplier = pat.getMultiplier(); in testAPI()
241 pat.setGroupingSize(2); in testAPI()
242 groupingSize = pat.getGroupingSize(); in testAPI()
248 pat.setDecimalSeparatorAlwaysShown(TRUE); in testAPI()
249 UBool tf = pat.isDecimalSeparatorAlwaysShown(); in testAPI()
255 pat.setExponentSignAlwaysShown(TRUE); in testAPI()
256 UBool esas = pat.isExponentSignAlwaysShown(); in testAPI()
263 pat.setScientificNotation(TRUE); in testAPI()
264 UBool sn = pat.isScientificNotation(); in testAPI()
272 pat.setMinimumExponentDigits(2); in testAPI()
273 MinimumExponentDigits = pat.getMinimumExponentDigits(); in testAPI()
281 pat.setRoundingIncrement(2.0); in testAPI()
282 RoundingIncrement = pat.getRoundingIncrement(); in testAPI()
290 funkyPat = pat.toPattern(funkyPat); in testAPI()
294 locPat = pat.toLocalizedPattern(locPat); in testAPI()
304 pat.applyPattern(p1, status); in testAPI()
309 s2 = pat.toPattern(s2); in testAPI()
315 if(pat.getSecondaryGroupingSize() != 0) { in testAPI()
316 … errln("FAIL: Secondary Grouping Size should be 0, not %d\n", pat.getSecondaryGroupingSize()); in testAPI()
319 if(pat.getGroupingSize() != 3) { in testAPI()
320 errln("FAIL: Primary Grouping Size should be 3, not %d\n", pat.getGroupingSize()); in testAPI()
326 pat.applyLocalizedPattern(p2, status); in testAPI()
331 s3 = pat.toLocalizedPattern(s3); in testAPI()
339 pat.applyLocalizedPattern(p2, pe, status); in testAPI()
344 s4 = pat.toLocalizedPattern(s3); in testAPI()
350 if(pat.getSecondaryGroupingSize() != 2) { in testAPI()
351 … errln("FAIL: Secondary Grouping Size should be 2, not %d\n", pat.getSecondaryGroupingSize()); in testAPI()
354 if(pat.getGroupingSize() != 3) { in testAPI()
355 errln("FAIL: Primary Grouping Size should be 3, not %d\n", pat.getGroupingSize()); in testAPI()
432 DecimalFormat pat(status); in testRounding() local
442 pat.setRoundingMode((DecimalFormat::ERoundingMode)mode); in testRounding()
443 if(pat.getRoundingMode() != (DecimalFormat::ERoundingMode)mode){ in testRounding()
449 pat.setRoundingIncrement(1.0); in testRounding()
450 pat.format(Roundingnumber, resultStr); in testRounding()
457 pat.format(Roundingnumber1, resultStr); in testRounding()
477 DecimalFormat pat(UnicodeString("#,##0.00"),status); in testRoundingInc() local
484 double roundingInc = pat.getRoundingIncrement(); in testRoundingInc()
496 pat.setRoundingMode((DecimalFormat::ERoundingMode)0); in testRoundingInc()
497 roundingInc = pat.getRoundingIncrement(); in testRoundingInc()