Lines Matching defs:nf
91 UNumberFormat* nf;
96 nf = unum_open(UNUM_DEFAULT, NULL, -1, NULL, NULL, status);
106 a = unum_parseInt64(nf, text, size, 0, status);
118 unum_close(nf);
1144 UNumberFormat *nf = unum_open(UNUM_SPELLOUT, NULL, 0, testPtr->locale, NULL, &status);
1149 value = unum_parse(nf, testPtr->source, -1, &position, &status);
1156 unum_close(nf);
1832 UNumberFormat *nf = unum_open(UNUM_CURRENCY, NULL, 0, "en_US", NULL, &status);
1837 unum_setTextAttribute(nf, UNUM_CURRENCY_CODE, ubuffer, 3, &status);
1842 used = unum_getTextAttribute(nf, UNUM_NEGATIVE_PREFIX, ubuffer, 64, &status);
1843 unum_setTextAttribute(nf, UNUM_NEGATIVE_PREFIX, ubuffer, used, &status);
1848 used = unum_formatDouble(nf, -1234.5, ubuffer, 64, NULL, &status);
1856 used = unum_formatDouble(nf, 1234.5, ubuffer, 64, NULL, &status);
1864 unum_close(nf);
1867 static void TestNBSPPatternRtNum(const char *testcase, int line, UNumberFormat *nf, double myNumber) {
1872 unum_formatDouble(nf, myNumber, myString, 20, NULL, &status);
1878 aNumber = unum_parse(nf, myString, -1, NULL, &status);
1890 static void TestNBSPPatternRT(const char *testcase, UNumberFormat *nf) {
1891 TestNBSPPatternRtNum(testcase, __LINE__, nf, 12345.);
1892 TestNBSPPatternRtNum(testcase, __LINE__, nf, -12345.);
1897 UNumberFormat* nf = NULL;
1902 nf = unum_open(UNUM_CURRENCY, NULL, -1, "ar_AE", NULL, &status);
1903 if(U_FAILURE(status) || nf == NULL) {
1907 TestNBSPPatternRT(testcase, nf);
1915 unum_applyPattern(nf, FALSE, pat, -1, NULL, &status);
1919 TestNBSPPatternRT(testcase, nf);
1923 unum_close(nf); status = U_ZERO_ERROR;
1926 nf = unum_open(UNUM_DECIMAL, NULL, -1, "ar_AE", NULL, &status);
1930 TestNBSPPatternRT(testcase, nf);
1931 unum_close(nf); status = U_ZERO_ERROR;
1934 nf = unum_open(UNUM_PERCENT, NULL, -1, "ar_AE", NULL, &status);
1938 TestNBSPPatternRT(testcase, nf);
1939 unum_close(nf); status = U_ZERO_ERROR;