Home | History | Annotate | Download | only in cintltst

Lines Matching refs:nf

15 *   06/24/99    helena      Integrated Alan's NF enhancements and Java2 bug fixes
831 UNumberFormat *nf = unum_open(UNUM_SPELLOUT, NULL, 0, testPtr->locale, NULL, &status);
836 value = unum_parse(nf, testPtr->source, -1, &position, &status);
843 unum_close(nf);
1452 UNumberFormat *nf = unum_open(UNUM_CURRENCY, NULL, 0, "en_US", NULL, &status);
1457 unum_setTextAttribute(nf, UNUM_CURRENCY_CODE, ubuffer, 3, &status);
1462 used = unum_getTextAttribute(nf, UNUM_NEGATIVE_PREFIX, ubuffer, 64, &status);
1463 unum_setTextAttribute(nf, UNUM_NEGATIVE_PREFIX, ubuffer, used, &status);
1468 used = unum_formatDouble(nf, -1234.5, ubuffer, 64, NULL, &status);
1476 used = unum_formatDouble(nf, 1234.5, ubuffer, 64, NULL, &status);
1484 unum_close(nf);
1487 static void TestNBSPPatternRtNum(const char *testcase, UNumberFormat *nf, double myNumber) {
1492 unum_formatDouble(nf, myNumber, myString, 20, NULL, &status);
1498 aNumber = unum_parse(nf, myString, -1, NULL, &status);
1510 static void TestNBSPPatternRT(const char *testcase, UNumberFormat *nf) {
1511 TestNBSPPatternRtNum(testcase, nf, 12345.);
1512 TestNBSPPatternRtNum(testcase, nf, -12345.);
1517 UNumberFormat* nf = NULL;
1522 nf = unum_open(UNUM_CURRENCY, NULL, -1, "ar_AE", NULL, &status);
1523 if(U_FAILURE(status) || nf == NULL) {
1527 TestNBSPPatternRT(testcase, nf);
1535 unum_applyPattern(nf, FALSE, pat, -1, NULL, &status);
1539 TestNBSPPatternRT(testcase, nf);
1543 unum_close(nf); status = U_ZERO_ERROR;
1546 nf = unum_open(UNUM_DECIMAL, NULL, -1, "ar_AE", NULL, &status);
1550 TestNBSPPatternRT(testcase, nf);
1551 unum_close(nf); status = U_ZERO_ERROR;
1554 nf = unum_open(UNUM_PERCENT, NULL, -1, "ar_AE", NULL, &status);
1558 TestNBSPPatternRT(testcase, nf);
1559 unum_close(nf); status = U_ZERO_ERROR;