Lines Matching full:unum_open
114 nf = unum_open(UNUM_DEFAULT, NULL, -1, NULL, NULL, status);
118 log_data_err("Error in unum_open() %s \n", myErrorName(*status));
175 /* Testing unum_open() with various Numberformat styles and locales*/
177 log_verbose("Testing unum_open() with default style and locale\n");
178 def=unum_open(style, NULL,0,NULL, NULL,&status);
183 log_data_err("Error in creating default NumberFormat using unum_open(): %s (Are you missing data?)\n", myErrorName(status));
187 log_verbose("\nTesting unum_open() with french locale and default style(decimal)\n");
188 fr=unum_open(style,NULL,0, "fr_FR",NULL, &status);
192 log_verbose("\nTesting unum_open(currency,NULL,status)\n");
195 cur_def=unum_open(style, NULL,0,"en_US", NULL, &status);
197 log_err("Error: could not create NumberFormat using \n unum_open(currency, NULL, &status) %s\n",
200 log_verbose("\nTesting unum_open(currency, frenchlocale, status)\n");
201 cur_fr=unum_open(style,NULL,0, "fr_FR", NULL, &status);
203 log_err("Error: could not create NumberFormat using unum_open(currency, french, &status): %s\n",
206 log_verbose("\nTesting unum_open(percent, NULL, status)\n");
208 per_def=unum_open(style,NULL,0, NULL,NULL, &status);
210 log_err("Error: could not create NumberFormat using unum_open(percent, NULL, &status): %s\n", myErrorName(status));
212 log_verbose("\nTesting unum_open(percent,frenchlocale, status)\n");
213 per_fr=unum_open(style, NULL,0,"fr_FR", NULL,&status);
215 log_err("Error: could not create NumberFormat using unum_open(percent, french, &status): %s\n", myErrorName(status));
217 log_verbose("\nTesting unum_open(spellout, NULL, status)");
219 spellout_def=unum_open(style, NULL, 0, "en_US", NULL, &status);
221 log_err("Error: could not create NumberFormat using unum_open(spellout, NULL, &status): %s\n", myErrorName(status));
477 pattern=unum_open(UNUM_IGNORE,temp1, u_strlen(temp1), NULL, NULL,&status);
527 cur_frpattern=unum_open(UNUM_IGNORE,result, u_strlen(result), "fr_FR",NULL, &status);
817 dec_en = unum_open(UNUM_DECIMAL, NULL, 0, "en_US", NULL, &status);
849 fmt = unum_open(UNUM_PATTERN_DECIMAL, dest, -1, "en", NULL /*parseError*/, &status);
933 UNumberFormat *fmt = unum_open(UNUM_DEFAULT, NULL, 0, NULL, NULL, &status);
979 UNumberFormat* unum = unum_open( UNUM_DECIMAL /*or UNUM_DEFAULT*/, NULL, -1, NULL, NULL, &errorCode);
981 UNumberFormat* unum = unum_open( UNUM_PATTERN_DECIMAL /*needs pattern*/, pat, -1, NULL, NULL, &errorCode);
1059 unum = unum_open(UNUM_CURRENCY, NULL, 0, itemPtr->locale, NULL, &status);
1084 log_data_err("unexpected error in unum_open UNUM_CURRENCY for locale %s: '%s'\n", itemPtr->locale, u_errorName(status));
1089 unum = unum_open(UNUM_CURRENCY_PLURAL, NULL, 0, itemPtr->locale, NULL, &status);
1114 log_data_err("unexpected error in unum_open UNUM_CURRENCY_PLURAL for locale %s: '%s'\n", itemPtr->locale, u_errorName(status));
1163 UNumberFormat *nf = unum_open(UNUM_SPELLOUT, NULL, 0, testPtr->locale, NULL, &status);
1165 log_err_status(status, "unum_open fails for UNUM_SPELLOUT with locale %s, status %s\n", testPtr->locale, myErrorName(status));
1190 fmt=unum_open(UNUM_IGNORE, temp, -1, NULL, NULL,&status);
1192 log_data_err("got unexpected error for unum_open: '%s'\n", u_errorName(status));
1231 fmt=unum_open(UNUM_DECIMAL, NULL, 0, NULL /* "en_US"*/, NULL, &status);
1233 log_data_err("got unexpected error for unum_open: '%s'\n", u_errorName(status));
1276 pattern=unum_open(UNUM_IGNORE,temp1, u_strlen(temp1), NULL, NULL,&status);
1289 pattern=unum_open(UNUM_IGNORE,temp1, u_strlen(temp1), "en_US",NULL, &status);
1390 fmt = unum_open(UNUM_IGNORE, temp1, u_strlen(temp1), NULL, NULL, &status);
1654 format = unum_open(UNUM_CURRENCY, NULL, 0, "th_TH@currency=QQQ", NULL, &status);
1656 log_data_err("unum_open did not return expected result for non-existent requested currency: '%s' (Are you missing data?)\n", u_errorName(status));
1665 log_err("unum_open set the currency to QQQ\n");
1687 formats[0] = unum_open(UNUM_PATTERN_DECIMAL, pat, -1, "en_US", &perr, &status);
1694 formats[1] = unum_open(UNUM_SPELLOUT, NULL, 0, "en_US", &perr, &status);
1701 formats[2] = unum_open(UNUM_ORDINAL, NULL, 0, "en_US", &perr, &status);
1708 formats[3] = unum_open(UNUM_DURATION, NULL, 0, "en_US", &perr, &status);
1752 formats[4] = unum_open(UNUM_PATTERN_RULEBASED, pat, -1, "en_US", &perr, &status);
1816 cur = unum_open(UNUM_CURRENCY, NULL,0,"en_US", NULL, &status);
1819 log_data_err("unum_open failed: %s (Are you missing data?)\n", u_errorName(status));
1851 UNumberFormat *nf = unum_open(UNUM_CURRENCY, NULL, 0, "en_US", NULL, &status);
1921 nf = unum_open(UNUM_CURRENCY, NULL, -1, "ar_AE", NULL, &status);
1923 log_data_err("%s:%d: %s: unum_open failed with %s (Are you missing data?)\n", __FILE__, __LINE__, testcase, u_errorName(status));
1945 nf = unum_open(UNUM_DECIMAL, NULL, -1, "ar_AE", NULL, &status);
1947 log_err("%s: unum_open failed with %s\n", testcase, u_errorName(status));
1953 nf = unum_open(UNUM_PERCENT, NULL, -1, "ar_AE", NULL, &status);
1955 log_err("%s: unum_open failed with %s\n", testcase, u_errorName(status));
2013 pform = unum_open(UNUM_PATTERN_RULEBASED, pattern, -1, "en_US", NULL, &status);
2037 fmt = unum_open(UNUM_DECIMAL, NULL, -1, "en_US", NULL, &status);
2040 log_data_err("%s:%d: unum_open failed with %s (Are you missing data?)\n", __FILE__, __LINE__, u_errorName(status));
2080 fmt = unum_open(UNUM_SCIENTIFIC, NULL, -1, "en_US", NULL, &status);
2081 assertSuccess("unum_open(UNUM_SCIENTIFIC, ...)", &status);
2128 UNumberFormat *fmt = unum_open(
2136 log_data_err("%s:%d: %s: unum_open failed with %s (Are you missing data?)\n", __FILE__, __LINE__, "TestMaxInt", u_errorName(status));
2199 UNumberFormat *unum = unum_open(UNUM_DEFAULT, NULL, -1, "en_US_POSIX", NULL, &status);
2200 if(assertSuccessCheck("calling unum_open()", &status, TRUE)) {
2224 unum = unum_open(UNUM_DEFAULT, NULL, -1, "en_US_POSIX", NULL, &status);
2225 if(assertSuccessCheck("calling ufmt_open() || unum_open()", &status, TRUE)) {
2272 unum = unum_open(UNUM_DEFAULT, NULL, -1, "en_US_POSIX", NULL, &status);
2273 if(assertSuccessCheck("calling unum_open()", &status, TRUE)) {
2455 UNumberFormat* unumFmt = unum_open(style, NULL, 0, localeString, NULL, &status);
2457 log_data_err("FAIL: unum_open, locale %s, style %d - %s\n", localeString, (int)style, myErrorName(status));
2504 UNumberFormat *unum = unum_open(UNUM_SPELLOUT, NULL, 0, "en", NULL, &status);
2518 log_data_err("unum_open UNUM_SPELLOUT for en fails with status %s\n", myErrorName(status));
2526 unum = unum_open(itemPtr->style, NULL, 0, itemPtr->locale, NULL, &status);
2528 log_data_err("FAIL: unum_open, locale %s, style %d - %s\n",
2582 unumFmt = unum_open(style, NULL, 0, localeString, NULL, &status);
2584 log_data_err("FAIL: unum_open, locale %s, style %d - %s\n",
2645 UNumberFormat* unumfmt = unum_open(UNUM_CURRENCY, NULL, 0, "en_US", NULL, &status);
2672 log_data_err("unum_open UNUM_CURRENCY for en_US fails with status %s\n", myErrorName(status));
2830 UNumberFormat * unum = unum_open(lsaTestPtr->style, NULL, 0, lsaTestPtr->locale, NULL, &status);
2832 log_data_err("FAIL: unum_open style %d, locale %s: error %s\n", (int)lsaTestPtr->style, lsaTestPtr->locale, u_errorName(status));