Lines Matching refs:pat
120 DecimalFormat pat(pattern, status); in testAPI() local
145 DecimalFormat copy(pat); in testAPI()
151 if( ! (copy == pat) || copy != pat) { in testAPI()
181 res2 = pat.format(l, res2, pos2); in testAPI()
207 pat.applyPattern(patt, status); in testAPI()
211 pat.parse(text, result1, pos); in testAPI()
218 pat.parse(text, result2, status); in testAPI()
231 const DecimalFormatSymbols *syms = pat.getDecimalFormatSymbols(); in testAPI()
235 if( *(pat.getDecimalFormatSymbols()) != *(def.getDecimalFormatSymbols())) { in testAPI()
240 pat.setPositivePrefix("+"); in testAPI()
241 posPrefix = pat.getPositivePrefix(posPrefix); in testAPI()
248 pat.setNegativePrefix("-"); in testAPI()
249 negPrefix = pat.getNegativePrefix(negPrefix); in testAPI()
256 pat.setPositiveSuffix("_"); in testAPI()
257 posSuffix = pat.getPositiveSuffix(posSuffix); in testAPI()
264 pat.setNegativeSuffix("~"); in testAPI()
265 negSuffix = pat.getNegativeSuffix(negSuffix); in testAPI()
272 pat.setMultiplier(8); in testAPI()
273 multiplier = pat.getMultiplier(); in testAPI()
280 pat.setGroupingSize(2); in testAPI()
281 groupingSize = pat.getGroupingSize(); in testAPI()
287 pat.setDecimalSeparatorAlwaysShown(TRUE); in testAPI()
288 UBool tf = pat.isDecimalSeparatorAlwaysShown(); in testAPI()
294 pat.setExponentSignAlwaysShown(TRUE); in testAPI()
295 UBool esas = pat.isExponentSignAlwaysShown(); in testAPI()
302 pat.setScientificNotation(TRUE); in testAPI()
303 UBool sn = pat.isScientificNotation(); in testAPI()
311 pat.setMinimumExponentDigits(2); in testAPI()
312 MinimumExponentDigits = pat.getMinimumExponentDigits(); in testAPI()
320 pat.setRoundingIncrement(2.0); in testAPI()
321 RoundingIncrement = pat.getRoundingIncrement(); in testAPI()
329 funkyPat = pat.toPattern(funkyPat); in testAPI()
333 locPat = pat.toLocalizedPattern(locPat); in testAPI()
343 pat.applyPattern(p1, status); in testAPI()
348 s2 = pat.toPattern(s2); in testAPI()
354 if(pat.getSecondaryGroupingSize() != 0) { in testAPI()
355 … errln("FAIL: Secondary Grouping Size should be 0, not %d\n", pat.getSecondaryGroupingSize()); in testAPI()
358 if(pat.getGroupingSize() != 3) { in testAPI()
359 errln("FAIL: Primary Grouping Size should be 3, not %d\n", pat.getGroupingSize()); in testAPI()
365 pat.applyLocalizedPattern(p2, status); in testAPI()
370 s3 = pat.toLocalizedPattern(s3); in testAPI()
378 pat.applyLocalizedPattern(p2, pe, status); in testAPI()
383 s4 = pat.toLocalizedPattern(s3); in testAPI()
389 if(pat.getSecondaryGroupingSize() != 2) { in testAPI()
390 … errln("FAIL: Secondary Grouping Size should be 2, not %d\n", pat.getSecondaryGroupingSize()); in testAPI()
393 if(pat.getGroupingSize() != 3) { in testAPI()
394 errln("FAIL: Primary Grouping Size should be 3, not %d\n", pat.getGroupingSize()); in testAPI()
471 DecimalFormat pat(status); in testRounding() local
481 pat.setRoundingMode((DecimalFormat::ERoundingMode)mode); in testRounding()
482 if(pat.getRoundingMode() != (DecimalFormat::ERoundingMode)mode){ in testRounding()
488 pat.setRoundingIncrement(1.0); in testRounding()
489 pat.format(Roundingnumber, resultStr); in testRounding()
496 pat.format(Roundingnumber1, resultStr); in testRounding()
523 DecimalFormat pat(UnicodeString("#,##0.00"),status); in testRoundingInc() local
530 double roundingInc = pat.getRoundingIncrement(); in testRoundingInc()
542 pat.setRoundingMode((DecimalFormat::ERoundingMode)0); in testRoundingInc()
543 roundingInc = pat.getRoundingIncrement(); in testRoundingInc()
569 DecimalFormat pat(status); in TestScale() local
579 pat.setMaximumFractionDigits(4); in TestScale()
583 pat.applyPattern(percentPattern,status); in TestScale()
585 pat.setAttribute(UNUM_SCALE,testData[i].inputScale,status); in TestScale()
586 pat.format(testData[i].inputValue, resultStr); in TestScale()