• Home
  • Raw
  • Download

Lines Matching refs:pat

158     DecimalFormat pat(pattern, status);  in testAPI()  local
183 DecimalFormat copy(pat); in testAPI()
189 if( ! (copy == pat) || copy != pat) { in testAPI()
219 res2 = pat.format(l, res2, pos2); in testAPI()
245 pat.applyPattern(patt, status); in testAPI()
249 pat.parse(text, result1, pos); in testAPI()
256 pat.parse(text, result2, status); in testAPI()
269 const DecimalFormatSymbols *syms = pat.getDecimalFormatSymbols(); in testAPI()
273 if( *(pat.getDecimalFormatSymbols()) != *(def.getDecimalFormatSymbols())) { in testAPI()
278 pat.setPositivePrefix("+"); in testAPI()
279 posPrefix = pat.getPositivePrefix(posPrefix); in testAPI()
286 pat.setNegativePrefix("-"); in testAPI()
287 negPrefix = pat.getNegativePrefix(negPrefix); in testAPI()
294 pat.setPositiveSuffix("_"); in testAPI()
295 posSuffix = pat.getPositiveSuffix(posSuffix); in testAPI()
302 pat.setNegativeSuffix("~"); in testAPI()
303 negSuffix = pat.getNegativeSuffix(negSuffix); in testAPI()
310 pat.setMultiplier(8); in testAPI()
311 multiplier = pat.getMultiplier(); in testAPI()
318 pat.setGroupingSize(2); in testAPI()
319 groupingSize = pat.getGroupingSize(); in testAPI()
325 pat.setDecimalSeparatorAlwaysShown(TRUE); in testAPI()
326 UBool tf = pat.isDecimalSeparatorAlwaysShown(); in testAPI()
332 pat.setExponentSignAlwaysShown(TRUE); in testAPI()
333 UBool esas = pat.isExponentSignAlwaysShown(); in testAPI()
340 pat.setScientificNotation(TRUE); in testAPI()
341 UBool sn = pat.isScientificNotation(); in testAPI()
349 pat.setMinimumExponentDigits(2); in testAPI()
350 MinimumExponentDigits = pat.getMinimumExponentDigits(); in testAPI()
358 pat.setRoundingIncrement(2.0); in testAPI()
359 RoundingIncrement = pat.getRoundingIncrement(); in testAPI()
367 funkyPat = pat.toPattern(funkyPat); in testAPI()
371 locPat = pat.toLocalizedPattern(locPat); in testAPI()
377 pat = DecimalFormat(status); // reset in testAPI()
382 pat.applyPattern(p1, status); in testAPI()
387 s2 = pat.toPattern(s2); in testAPI()
391 if(pat.getSecondaryGroupingSize() != 0) { in testAPI()
392 … errln("FAIL: Secondary Grouping Size should be 0, not %d\n", pat.getSecondaryGroupingSize()); in testAPI()
395 if(pat.getGroupingSize() != 3) { in testAPI()
396 errln("FAIL: Primary Grouping Size should be 3, not %d\n", pat.getGroupingSize()); in testAPI()
402 pat.applyLocalizedPattern(p2, status); in testAPI()
407 s3 = pat.toLocalizedPattern(s3); in testAPI()
413 pat.applyLocalizedPattern(p2, pe, status); in testAPI()
418 s4 = pat.toLocalizedPattern(s3); in testAPI()
422 if(pat.getSecondaryGroupingSize() != 2) { in testAPI()
423 … errln("FAIL: Secondary Grouping Size should be 2, not %d\n", pat.getSecondaryGroupingSize()); in testAPI()
426 if(pat.getGroupingSize() != 3) { in testAPI()
427 errln("FAIL: Primary Grouping Size should be 3, not %d\n", pat.getGroupingSize()); in testAPI()
505 DecimalFormat pat(status); in testRounding() local
515 pat.setRoundingMode((DecimalFormat::ERoundingMode)mode); in testRounding()
516 if(pat.getRoundingMode() != (DecimalFormat::ERoundingMode)mode){ in testRounding()
522 pat.setRoundingIncrement(1.0); in testRounding()
523 pat.format(Roundingnumber, resultStr); in testRounding()
530 pat.format(Roundingnumber1, resultStr); in testRounding()
557 DecimalFormat pat(UnicodeString("#,##0.00"),status); in testRoundingInc() local
564 double roundingInc = pat.getRoundingIncrement(); in testRoundingInc()
576 pat.setRoundingMode((DecimalFormat::ERoundingMode)0); in testRoundingInc()
577 roundingInc = pat.getRoundingIncrement(); in testRoundingInc()
603 DecimalFormat pat(status); in TestScale() local
613 pat.setMaximumFractionDigits(4); in TestScale()
617 pat.applyPattern(percentPattern,status); in TestScale()
621 pat.setAttribute(UNUM_SCALE, testData[i].inputScale,status); in TestScale()
622 assertEquals("", testData[i].inputScale, pat.getMultiplierScale()); in TestScale()
624 pat.setMultiplierScale(testData[i].inputScale); in TestScale()
625 assertEquals("", testData[i].inputScale, pat.getAttribute(UNUM_SCALE, status)); in TestScale()
627 pat.format(testData[i].inputValue, resultStr); in TestScale()