Lines Matching refs:nf
15 * 06/24/99 helena Integrated Alan's NF enhancements and Java2 bug fixes
108 UNumberFormat* nf;
113 nf = unum_open(UNUM_DEFAULT, NULL, -1, NULL, NULL, status);
123 a = unum_parseInt64(nf, text, size, 0, status);
135 unum_close(nf);
983 UNumberFormat *nf = unum_open(UNUM_SPELLOUT, NULL, 0, testPtr->locale, NULL, &status);
988 value = unum_parse(nf, testPtr->source, -1, &position, &status);
995 unum_close(nf);
1645 UNumberFormat *nf = unum_open(UNUM_CURRENCY, NULL, 0, "en_US", NULL, &status);
1650 unum_setTextAttribute(nf, UNUM_CURRENCY_CODE, ubuffer, 3, &status);
1655 used = unum_getTextAttribute(nf, UNUM_NEGATIVE_PREFIX, ubuffer, 64, &status);
1656 unum_setTextAttribute(nf, UNUM_NEGATIVE_PREFIX, ubuffer, used, &status);
1661 used = unum_formatDouble(nf, -1234.5, ubuffer, 64, NULL, &status);
1669 used = unum_formatDouble(nf, 1234.5, ubuffer, 64, NULL, &status);
1677 unum_close(nf);
1680 static void TestNBSPPatternRtNum(const char *testcase, UNumberFormat *nf, double myNumber) {
1685 unum_formatDouble(nf, myNumber, myString, 20, NULL, &status);
1691 aNumber = unum_parse(nf, myString, -1, NULL, &status);
1703 nf) {
1704 TestNBSPPatternRtNum(testcase, nf, 12345.);
1705 TestNBSPPatternRtNum(testcase, nf, -12345.);
1710 UNumberFormat* nf = NULL;
1715 nf = unum_open(UNUM_CURRENCY, NULL, -1, "ar_AE", NULL, &status);
1716 if(U_FAILURE(status) || nf == NULL) {
1720 TestNBSPPatternRT(testcase, nf);
1728 unum_applyPattern(nf, FALSE, pat, -1, NULL, &status);
1732 TestNBSPPatternRT(testcase, nf);
1736 unum_close(nf); status = U_ZERO_ERROR;
1739 nf = unum_open(UNUM_DECIMAL, NULL, -1, "ar_AE", NULL, &status);
1743 TestNBSPPatternRT(testcase, nf);
1744 unum_close(nf); status = U_ZERO_ERROR;
1747 nf = unum_open(UNUM_PERCENT, NULL, -1, "ar_AE", NULL, &status);
1751 TestNBSPPatternRT(testcase, nf);
1752 unum_close(nf); status = U_ZERO_ERROR;