Lines Matching defs:result

176     UChar *result=NULL;
226 /* Can't hardcode the result to assume the default locale is "en_US". */
296 result=(UChar*)malloc(sizeof(UChar) * resultlength);
299 unum_format(cur_def, l, result, resultlength, &pos1, &status);
307 if(u_strcmp(result, temp1)==0)
317 free(result);
318 result = 0;
329 result=(UChar*)malloc(sizeof(UChar) * resultlength);
332 unum_formatDouble(cur_def, d, result, resultlength, &pos2, &status);
339 if(result && u_strcmp(result, temp1)==0)
343 aescstrdup(result, -1), aescstrdup(temp1, -1));
356 if (result != NULL) {
357 d1=unum_parseDouble(cur_def, result, u_strlen(result), &parsepos, &status);
359 log_err("result is NULL\n");
362 log_err("parse of '%s' failed. Parsepos=%d. The error is : %s\n", aescstrdup(result,u_strlen(result)),parsepos, myErrorName(status));
369 if (result)
370 free(result);
371 result = 0;
385 result=(UChar*)malloc(sizeof(UChar) * resultlength);
386 unum_formatDoubleCurrency(cur_def, a, temp, result, resultlength, &pos2, &status);
391 if (result && u_strcmp(result, temp1)==0) {
395 aescstrdup(result, -1), aescstrdup(temp1, -1));
406 if (result == NULL) {
407 log_err("result is NULL\n");
410 d1=unum_parseDoubleCurrency(cur_def, result, u_strlen(result), &parsepos, temp2, &status);
412 log_err("parseDoubleCurrency '%s' failed. The error is : %s\n", aescstrdup(result, u_strlen(result)), myErrorName(status));
428 free(result);
429 result = 0;
456 free(result);
476 result=(UChar*)malloc(sizeof(UChar) * resultlength);
479 unum_format(per_fr, l, result, resultlength, &pos1, &status);
492 l1=unum_parse(per_fr, result, u_strlen(result), &parsepos, &status);
504 free(result);
525 result=(UChar*)malloc(sizeof(UChar) * resultlength);
526 unum_toPattern(pattern, false, result, resultlength, &status);
534 if(u_strcmp(result, temp1)!=0)
538 free(result);
550 result=(UChar*)malloc(sizeof(UChar) * resultlength);
551 unum_toPattern(cur_def, false, result, resultlength, &status);
559 cur_frpattern=unum_open(UNUM_IGNORE,result, u_strlen(result), "fr_FR",NULL, &status);
565 free(result);
579 /*format to check the result */
586 result=(UChar*)malloc(sizeof(UChar) * resultlength);
587 unum_format(cur_def, l, result, resultlength, &pos1, &status);
597 unum_applyPattern(cur_frpattern, false, result, u_strlen(result),NULL,NULL);
611 /*format and check with the previous result */
634 if(u_strcmp(result, temp1) != 0) {
635 log_err("Formatting failed after setting symbols. result=%s temp1=%s\n", result, temp1);
641 free(result);
842 log_err("unum_format result %d != value %d\n", parseResult, value);
1236 UChar *result = NULL;
1256 result=(UChar*)malloc(sizeof(UChar) * resultlength);
1257 unum_formatDouble(fmt, d, result, resultlength, NULL, &status);
1264 if(u_strcmp(result, temp)==0)
1268 free(result);
1276 UChar result[128];
1295 (void)unum_formatDouble(fmt, d, result, UPRV_LENGTHOF(result), NULL, &status);
1303 if(u_strcmp(result, expected)!=0)
1304 log_err("FAIL: Error in unum_formatDouble result %s instead of %s\n", u_austrcpy(temp1, result), u_austrcpy(temp2, expected) );
1311 UChar *result=NULL;
1358 result=(UChar*)malloc(sizeof(UChar) * resultlength);
1359 unum_toPattern(pattern, false, result, resultlength, &status);
1367 if(u_strncmp(result, temp2, resultlengthneeded)!=0) {
1372 austrdup(result));
1377 free(result);
1387 result=(UChar*)malloc(sizeof(UChar) * resultlength);
1388 unum_formatDouble(pattern, d, result, resultlength, NULL, &status);
1396 if(u_strcmp(result, temp1)==0)
1410 d1=unum_parseDouble(pattern, result, u_strlen(result), &parsepos, &status);
1420 free(result);
1434 UChar result[512];
1453 unum_formatInt64(fmt, U_INT64_MAX, result, 512, NULL, &status);
1457 log_verbose("format int64max: '%s'\n", result);
1459 val32 = unum_parse(fmt, result, u_strlen(result), &parsepos, &status);
1468 val64 = unum_parseInt64(fmt, result, u_strlen(result), &parsepos, &status);
1477 valDouble = unum_parseDouble(fmt, result, u_strlen(result), &parsepos, &status);
1485 unum_formatInt64(fmt, U_INT64_MIN, result, 512, NULL, &status);
1489 log_verbose("format int64min: '%s'\n", result);
1491 val32 = unum_parse(fmt, result, u_strlen(result), &parsepos, &status);
1500 val64 = unum_parseInt64(fmt, result, u_strlen(result), &parsepos, &status);
1509 valDouble = unum_parseDouble(fmt, result, u_strlen(result), &parsepos, &status);
1517 unum_formatDouble(fmt, doubleBig, result, 512, NULL, &status);
1521 log_verbose("format doubleBig: '%s'\n", result);
1523 val32 = unum_parse(fmt, result, u_strlen(result), &parsepos, &status);
1532 val64 = unum_parseInt64(fmt, result, u_strlen(result), &parsepos, &status);
1541 valDouble = unum_parseDouble(fmt, result, u_strlen(result), &parsepos, &status);
1549 u_uastrcpy(result, "5.06e-27");
1551 valDouble = unum_parseDouble(fmt, result, u_strlen(result), &parsepos, &status);
1714 log_data_err("unum_open did not return expected result for non-existent requested currency: '%s' (Are you missing data?)\n", u_errorName(status));
1864 log_err("Wrong result for unrounded value\n");
1886 log_err("Wrong result for rounded value. Got: %s\n", temp);
1976 log_err("Didn't get expected negative result\n");
1984 log_err("Didn't get expected positive result\n");
2308 UChar result[100];
2309 unum_formatDouble(fmt, 42, result, 100, NULL, &status);
2311 assertUEquals("Result with sign always shown", u"+42", result);
2326 UChar result[100];
2327 unum_formatDouble(fmt, 1234, result, 100, NULL, &status);
2329 assertUEquals("Result with minimum grouping digits A", u"1234", result);
2330 unum_formatDouble(fmt, 12345, result, 100, NULL, &status);
2332 assertUEquals("Result with minimum grouping digits B", u"12,345", result);
2346 double result = unum_parseDouble(fmt, u"1e2", -1, NULL, &status);
2348 assertIntEquals("Result with case sensitive", 100, (int64_t)result);
2351 result = unum_parseDouble(fmt, u"1e2", -1, &ppos, &status);
2354 assertIntEquals("Result with case sensitive", 1, (int64_t)result);
2367 int32_t result = 0;
2371 result = ufmt_getLong(ufmt, &status); /* == 123 */
2375 assertTrue("result == 123", (result == 123));
2567 // format result using CURRENCYSTYLE,
2568 // format result using CURRENCY_STANDARD,
2569 // format result using CURRENCY_ACCOUNTING,
2570 // format result using ISOCURRENCYSTYLE,
2571 // format result using PLURALCURRENCYSTYLE,
2725 * format result using CURRENCYSTYLE with CASH purpose,-
2773 UChar result[64];
2783 resultLen = unum_formatDouble(unumFmt, numberToBeFormat, result, UPRV_LENGTHOF(result),
2787 if(resultLen != expectLen || u_strcmp(result, expect) != 0) {
2789 aescstrdup(expect, expectLen), aescstrdup(result, resultLen));
2825 log_err("unum_toPattern result wrong, expected %s, got %s\n", aescstrdup(currFmtToPatExpected,-1), aescstrdup(ubuf,ulen));
2833 log_err("unum_formatDouble result wrong, expected %s, got %s\n", aescstrdup(currFmtResultExpected,-1), aescstrdup(ubuf,ulen));
3440 log_err("unum_toPattern result should ignore padding but get %s\n", bbuf);
3452 log_err("unum_formatDecimal result expect 24 but get %s\n", bbuf);
3488 log_err("unum_formatDouble value %.1f expected result to begin with 1E+0, got %s\n", value, bbuf);
3602 UChar result[40];
3603 unum_formatDecimal(nf, "987654321000000000000001", -1, result, 40, NULL, &status);
3607 assertUEquals("", u"€987,654,321,000,000,000,000,001.00", result);
3620 UChar result[200];
3622 unum_formatDouble(nf1, 123, result, 200, NULL, &err);
3624 assertUEquals("Wrong result with UNUM_DEFAULT", u"፻፳፫", result);
3626 unum_formatDouble(nf2, 123, result, 200, NULL, &err);
3628 assertUEquals("Wrong result with UNUM_NUMBERING_SYSTEM", u"፻፳፫", result);
3630 unum_formatDouble(nf3, 123, result, 200, NULL, &err);
3632 assertUEquals("Wrong result with UNUM_NUMBERING_SYSTEM and English", u"123", result);