Home
last modified time | relevance | path

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

/external/icu/icu4c/source/test/cintltst/
Dcpluralrulestest.c85 UNumberFormat* unumfmt; in TestPluralRules() local
105unumfmt = unum_open(UNUM_PATTERN_DECIMAL, twoDecimalPat, -1, testItemPtr->locale, NULL, &status); in TestPluralRules()
107 …keywdLen = uplrules_selectWithFormat(uplrules, testItemPtr->number, unumfmt, keyword, kKeywordBufL… in TestPluralRules()
122 unum_close(unumfmt); in TestPluralRules()
Dcnumtst.c2801 UNumberFormat* unumfmt = unum_open(UNUM_CURRENCY, NULL, 0, "en_US", NULL, &status); in TestCurrFmtNegSameAsPositive() local
2803 unum_applyPattern(unumfmt, FALSE, currFmtNegSameAsPos, -1, NULL, &status); in TestCurrFmtNegSameAsPositive()
2806 int32_t ulen = unum_toPattern(unumfmt, FALSE, ubuf, kUBufSize, &status); in TestCurrFmtNegSameAsPositive()
2812 unum_setSymbol(unumfmt, UNUM_MINUS_SIGN_SYMBOL, emptyString, 0, &status); in TestCurrFmtNegSameAsPositive()
2814 ulen = unum_formatDouble(unumfmt, -100.0, ubuf, kUBufSize, NULL, &status); in TestCurrFmtNegSameAsPositive()
2826 unum_close(unumfmt); in TestCurrFmtNegSameAsPositive()
3028 UNumberFormat *unumfmt = unum_open(UNUM_DECIMAL, NULL, 0, "en_US", NULL, &status); in TestParseCurrPatternWithDecStyle() local
3032 unum_applyPattern(unumfmt, FALSE, currpat, -1, NULL, &status); in TestParseCurrPatternWithDecStyle()
3037 double value = unum_parseDouble(unumfmt, parsetxt, -1, &pos, &status); in TestParseCurrPatternWithDecStyle()
3042 unum_close(unumfmt); in TestParseCurrPatternWithDecStyle()