Home
last modified time | relevance | path

Searched refs:unumfmt (Results 1 – 2 of 2) sorted by relevance

/third_party/icu/icu4c/source/test/cintltst/
Dcpluralrulestest.c87 UNumberFormat* unumfmt; in TestPluralRules() local
107unumfmt = unum_open(UNUM_PATTERN_DECIMAL, twoDecimalPat, -1, testItemPtr->locale, NULL, &status); in TestPluralRules()
109 …keywdLen = uplrules_selectWithFormat(uplrules, testItemPtr->number, unumfmt, keyword, kKeywordBufL… in TestPluralRules()
124 unum_close(unumfmt); in TestPluralRules()
Dcnumtst.c2816 UNumberFormat* unumfmt = unum_open(UNUM_CURRENCY, NULL, 0, "en_US", NULL, &status); in TestCurrFmtNegSameAsPositive() local
2818 unum_applyPattern(unumfmt, false, currFmtNegSameAsPos, -1, NULL, &status); in TestCurrFmtNegSameAsPositive()
2821 int32_t ulen = unum_toPattern(unumfmt, false, ubuf, kUBufSize, &status); in TestCurrFmtNegSameAsPositive()
2827 unum_setSymbol(unumfmt, UNUM_MINUS_SIGN_SYMBOL, emptyString, 0, &status); in TestCurrFmtNegSameAsPositive()
2829 ulen = unum_formatDouble(unumfmt, -100.0, ubuf, kUBufSize, NULL, &status); in TestCurrFmtNegSameAsPositive()
2841 unum_close(unumfmt); in TestCurrFmtNegSameAsPositive()
3043 UNumberFormat *unumfmt = unum_open(UNUM_DECIMAL, NULL, 0, "en_US", NULL, &status); in TestParseCurrPatternWithDecStyle() local
3047 unum_applyPattern(unumfmt, false, currpat, -1, NULL, &status); in TestParseCurrPatternWithDecStyle()
3052 double value = unum_parseDouble(unumfmt, parsetxt, -1, &pos, &status); in TestParseCurrPatternWithDecStyle()
3057 unum_close(unumfmt); in TestParseCurrPatternWithDecStyle()