• Home
  • Raw
  • Download

Lines Matching refs:formatter

103     RuleBasedNumberFormat* formatter = new RuleBasedNumberFormat(URBNF_SPELLOUT, "he_IL", status);  in TestHebrewFraction()  local
106 delete formatter; in TestHebrewFraction()
114 formatter->format(123.45, result); in TestHebrewFraction()
127 formatter->format(123.0045, result); in TestHebrewFraction()
138 delete formatter; in TestHebrewFraction()
147 RuleBasedNumberFormat* formatter in TestAPI() local
151 delete formatter; in TestAPI()
159 RuleBasedNumberFormat* rbnfClone = (RuleBasedNumberFormat *)formatter->clone(); in TestAPI()
161 if(!(*rbnfClone == *formatter)) { in TestAPI()
174 assignResult = *formatter; in TestAPI()
175 if(!(assignResult == *formatter)) { in TestAPI()
205 if(!(ruleCtorResult == *formatter)) { in TestAPI()
211 if(!(nf == *formatter)) { in TestAPI()
221 UnicodeString rules = formatter->getRules(); in TestAPI()
225 if(!(fromRulesResult == *formatter)) { in TestAPI()
233 RuleBasedNumberFormat copyCtorResult(*formatter); in TestAPI()
234 if(!(copyCtorResult == *formatter)) { in TestAPI()
243 int32_t noOfRuleSetNames = formatter->getNumberOfRuleSetNames(); in TestAPI()
257 ruleSetName = formatter->getRuleSetName(i); in TestAPI()
261 intFormatResult = formatter->format(intFormatNum, ruleSetName, intFormatResult, pos1, status); in TestAPI()
262 …doubleFormatResult = formatter->format(doubleFormatNum, ruleSetName, doubleFormatResult, pos2, sta… in TestAPI()
269 formatter->setLenient(TRUE); in TestAPI()
270 formatter->parse(intFormatResult, intParseResult, status); in TestAPI()
271 formatter->parse(doubleFormatResult, doubleParseResult, status); in TestAPI()
275 formatter->setLenient(FALSE); in TestAPI()
276 formatter->parse(intFormatResult, intParseResult, status); in TestAPI()
277 formatter->parse(doubleFormatResult, doubleParseResult, status); in TestAPI()
285 intFormatResult = formatter->format(intFormatNum, "BLABLA", intFormatResult, pos1, status); in TestAPI()
291 … doubleFormatResult = formatter->format(doubleFormatNum, "TRUC", doubleFormatResult, pos2, status); in TestAPI()
306 formatter->format(4.5,result); in TestAPI()
314 formatter->format((int32_t)4,result); in TestAPI()
323 formatter->format((int64_t)4, result, pos, status = U_ZERO_ERROR); in TestAPI()
333 formatter->format((int64_t)4, formatter->getRuleSetName(0), result, pos2, status = U_ZERO_ERROR); in TestAPI()
342 delete formatter; in TestAPI()
400 RuleBasedNumberFormat formatter(fracRules, Locale::getEnglish(), perror, status); in TestFractionalRuleSet() local
430 doTest(&formatter, testData, FALSE); // exact values aren't parsable from fractions in TestFractionalRuleSet()
1067 RuleBasedNumberFormat* formatter in TestEnglishSpellout() local
1096 doTest(formatter, testData, TRUE); in TestEnglishSpellout()
1099 formatter->setLenient(TRUE); in TestEnglishSpellout()
1109 doLenientParseTest(formatter, lpTestData); in TestEnglishSpellout()
1112 delete formatter; in TestEnglishSpellout()
1119 RuleBasedNumberFormat* formatter in TestOrdinalAbbreviations() local
1146 doTest(formatter, testData, FALSE); in TestOrdinalAbbreviations()
1148 delete formatter; in TestOrdinalAbbreviations()
1155 RuleBasedNumberFormat* formatter in TestDurations() local
1176 doTest(formatter, testData, TRUE); in TestDurations()
1179 formatter->setLenient(TRUE); in TestDurations()
1184 doLenientParseTest(formatter, lpTestData); in TestDurations()
1187 delete formatter; in TestDurations()
1194 RuleBasedNumberFormat* formatter in TestSpanishSpellout() local
1225 doTest(formatter, testData, TRUE); in TestSpanishSpellout()
1227 delete formatter; in TestSpanishSpellout()
1234 RuleBasedNumberFormat* formatter in TestFrenchSpellout() local
1270 doTest(formatter, testData, TRUE); in TestFrenchSpellout()
1273 formatter->setLenient(TRUE); in TestFrenchSpellout()
1279 doLenientParseTest(formatter, lpTestData); in TestFrenchSpellout()
1282 delete formatter; in TestFrenchSpellout()
1319 RuleBasedNumberFormat* formatter in TestSwissFrenchSpellout() local
1325 doTest(formatter, swissFrenchTestData, TRUE); in TestSwissFrenchSpellout()
1327 delete formatter; in TestSwissFrenchSpellout()
1368 RuleBasedNumberFormat* formatter in TestBelgianFrenchSpellout() local
1376 doTest(formatter, belgianFrenchTestData, TRUE); in TestBelgianFrenchSpellout()
1378 delete formatter; in TestBelgianFrenchSpellout()
1385 RuleBasedNumberFormat* formatter in TestItalianSpellout() local
1417 doTest(formatter, testData, TRUE); in TestItalianSpellout()
1419 delete formatter; in TestItalianSpellout()
1426 RuleBasedNumberFormat* formatter in TestPortugueseSpellout() local
1456 doTest(formatter, testData, TRUE); in TestPortugueseSpellout()
1458 delete formatter; in TestPortugueseSpellout()
1464 RuleBasedNumberFormat* formatter in TestGermanSpellout() local
1491 doTest(formatter, testData, TRUE); in TestGermanSpellout()
1494 formatter->setLenient(TRUE); in TestGermanSpellout()
1499 doLenientParseTest(formatter, lpTestData); in TestGermanSpellout()
1502 delete formatter; in TestGermanSpellout()
1509 RuleBasedNumberFormat* formatter in TestThaiSpellout() local
1526 doTest(formatter, testData, TRUE); in TestThaiSpellout()
1528 delete formatter; in TestThaiSpellout()
1535 RuleBasedNumberFormat* formatter in TestSwedishSpellout() local
1563 doTest(formatter, testDataDefault, TRUE); in TestSwedishSpellout()
1574 formatter->setDefaultRuleSet("%spellout-cardinal-neuter", status); in TestSwedishSpellout()
1577 doTest(formatter, testDataNeutrum, TRUE); in TestSwedishSpellout()
1596 formatter->setDefaultRuleSet("%spellout-numbering-year", status); in TestSwedishSpellout()
1599 doTest(formatter, testDataYear, TRUE); in TestSwedishSpellout()
1606 delete formatter; in TestSwedishSpellout()
1613 RuleBasedNumberFormat* formatter in TestSmallValues() local
1654 doTest(formatter, testDataDefault, TRUE); in TestSmallValues()
1656 delete formatter; in TestSmallValues()
1669 RuleBasedNumberFormat formatter(rules, perror, status); in TestLocalizations() local
1681 doTest(&formatter, testData, FALSE); in TestLocalizations()
1954 IntlTestRBNF::doTest(RuleBasedNumberFormat* formatter, const char* const testData[][2], UBool testP… in doTest() argument
1978 formatter->format(expectedNumber, actualString/* , pos*/, status); in doTest()
1999 formatter->parse(actualString, parsedNumber, status); in doTest()
2028 IntlTestRBNF::doLenientParseTest(RuleBasedNumberFormat* formatter, const char* testData[][2]) in doLenientParseTest() argument
2041 formatter->parse(spelledNumberString, actualNumber, status); in doLenientParseTest()