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
810 UNumberFormat *nf = unum_open(UNUM_SPELLOUT, NULL, 0, testPtr->locale, NULL, &status);
815 value = unum_parse(nf, testPtr->source, -1, &position, &status);
822 unum_close(nf);
1431 UNumberFormat *nf = unum_open(UNUM_CURRENCY, NULL, 0, "en_US", NULL, &status);
1436 unum_setTextAttribute(nf, UNUM_CURRENCY_CODE, ubuffer, 3, &status);
1441 used = unum_getTextAttribute(nf, UNUM_NEGATIVE_PREFIX, ubuffer, 64, &status);
1442 unum_setTextAttribute(nf, UNUM_NEGATIVE_PREFIX, ubuffer, used, &status);
1447 used = unum_formatDouble(nf, -1234.5, ubuffer, 64, NULL, &status);
1455 used = unum_formatDouble(nf, 1234.5, ubuffer, 64, NULL, &status);
1463 unum_close(nf);
1466 static void TestNBSPPatternRtNum(const char *testcase, UNumberFormat *nf, double myNumber) {
1471 unum_formatDouble(nf, myNumber, myString, 20, NULL, &status);
1477 aNumber = unum_parse(nf, myString, -1, NULL, &status);
1489 static void TestNBSPPatternRT(const char *testcase, UNumberFormat *nf) {
1490 TestNBSPPatternRtNum(testcase, nf, 12345.);
1491 TestNBSPPatternRtNum(testcase, nf, -12345.);
1496 UNumberFormat* nf = NULL;
1501 nf = unum_open(UNUM_CURRENCY, NULL, -1, "ar_AE", NULL, &status);
1502 if(U_FAILURE(status) || nf == NULL) {
1506 TestNBSPPatternRT(testcase, nf);
1514 unum_applyPattern(nf, FALSE, pat, -1, NULL, &status);
1518 TestNBSPPatternRT(testcase, nf);
1522 unum_close(nf); status = U_ZERO_ERROR;
1525 nf = unum_open(UNUM_DECIMAL, NULL, -1, "ar_AE", NULL, &status);
1529 TestNBSPPatternRT(testcase, nf);
1530 unum_close(nf); status = U_ZERO_ERROR;
1533 nf = unum_open(UNUM_PERCENT, NULL, -1, "ar_AE", NULL, &status);
1537 TestNBSPPatternRT(testcase, nf);
1538 unum_close(nf); status = U_ZERO_ERROR;