Lines Matching refs:resultlength
161 int32_t resultlength; in TestNumberFormat() local
265 resultlength=0; in TestNumberFormat()
267 resultlengthneeded=unum_format(cur_def, l, NULL, resultlength, &pos1, &status); in TestNumberFormat()
271 resultlength=resultlengthneeded+1; in TestNumberFormat()
272 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestNumberFormat()
275 unum_format(cur_def, l, result, resultlength, &pos1, &status); in TestNumberFormat()
298 resultlength=0; in TestNumberFormat()
300 resultlengthneeded=unum_formatDouble(cur_def, d, NULL, resultlength, &pos2, &status); in TestNumberFormat()
304 resultlength=resultlengthneeded+1; in TestNumberFormat()
305 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestNumberFormat()
308 unum_formatDouble(cur_def, d, result, resultlength, &pos2, &status); in TestNumberFormat()
355 resultlength=0; in TestNumberFormat()
357 …resultlengthneeded=unum_formatDoubleCurrency(cur_def, a, temp, NULL, resultlength, &pos2, &status); in TestNumberFormat()
360 resultlength=resultlengthneeded+1; in TestNumberFormat()
361 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestNumberFormat()
362 unum_formatDoubleCurrency(cur_def, a, temp, result, resultlength, &pos2, &status); in TestNumberFormat()
410 resultlength=u_strlen(temp1); in TestNumberFormat()
414 d1=unum_parseDouble(cur_def, temp1, resultlength, &parsepos, &status); in TestNumberFormat()
418 …log_err("parseDouble('%s') failed. The error is : %s\n", aescstrdup(temp1, resultlength), myError… in TestNumberFormat()
445 resultlength=0; in TestNumberFormat()
447 resultlengthneeded=unum_format(per_fr, l, NULL, resultlength, &pos1, &status); in TestNumberFormat()
451 resultlength=resultlengthneeded+1; in TestNumberFormat()
452 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestNumberFormat()
455 unum_format(per_fr, l, result, resultlength, &pos1, &status); in TestNumberFormat()
495 resultlength=0; in TestNumberFormat()
496 resultlengthneeded=unum_toPattern(pattern, FALSE, NULL, resultlength, &status); in TestNumberFormat()
500 resultlength=resultlengthneeded+1; in TestNumberFormat()
501 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestNumberFormat()
502 unum_toPattern(pattern, FALSE, result, resultlength, &status); in TestNumberFormat()
520 resultlength=0; in TestNumberFormat()
521 resultlengthneeded=unum_toPattern(cur_def, FALSE, NULL, resultlength, &status); in TestNumberFormat()
525 resultlength=resultlengthneeded+1; in TestNumberFormat()
526 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestNumberFormat()
527 unum_toPattern(cur_def, FALSE, result, resultlength, &status); in TestNumberFormat()
556 resultlength=0; in TestNumberFormat()
557 resultlengthneeded=unum_format(cur_def, l, NULL, resultlength, &pos1, &status); in TestNumberFormat()
561 resultlength=resultlengthneeded+1; in TestNumberFormat()
562 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestNumberFormat()
563 unum_format(cur_def, l, result, resultlength, &pos1, &status); in TestNumberFormat()
589 resultlength=0; in TestNumberFormat()
590 resultlengthneeded=unum_format(cur_frpattern, l, NULL, resultlength, &pos1, &status); in TestNumberFormat()
594 resultlength=resultlengthneeded+1; in TestNumberFormat()
595 unum_format(cur_frpattern, l, temp1, resultlength, &pos1, &status); in TestNumberFormat()
630 …resultlength = unum_getSymbol(cur_frpattern, (UNumberFormatSymbol)i, symbol, UPRV_LENGTHOF(symbol)… in TestNumberFormat()
635 if(resultlength != 2 || symbol[0] != 0x41 + i || symbol[1] != 0x61 + i) { in TestNumberFormat()
653 resultlength=5; in TestNumberFormat()
654 unum_getTextAttribute(cur_fr, UNUM_NEGATIVE_SUFFIX, temp, resultlength, &status); in TestNumberFormat()
664 unum_getTextAttribute(cur_def, UNUM_NEGATIVE_SUFFIX, suffix, resultlength, &status); in TestNumberFormat()
684 unum_getTextAttribute(def, UNUM_POSITIVE_PREFIX, temp, resultlength, &status); in TestNumberFormat()
701 unum_getTextAttribute(def, UNUM_NEGATIVE_PREFIX, temp, resultlength, &status); in TestNumberFormat()
718 unum_getTextAttribute(def, UNUM_NEGATIVE_SUFFIX, temp, resultlength, &status); in TestNumberFormat()
735 unum_getTextAttribute(def, UNUM_POSITIVE_SUFFIX, temp, resultlength, &status); in TestNumberFormat()
1202 int32_t resultlength; in TestSignificantDigits() local
1218 resultlength=0; in TestSignificantDigits()
1219 resultlengthneeded=unum_formatDouble(fmt, d, NULL, resultlength, NULL, &status); in TestSignificantDigits()
1223 resultlength=resultlengthneeded+1; in TestSignificantDigits()
1224 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestSignificantDigits()
1225 unum_formatDouble(fmt, d, result, resultlength, NULL, &status); in TestSignificantDigits()
1284 int32_t resultlength; in TestNumberFormatPadding() local
1320 resultlength=0; in TestNumberFormatPadding()
1321 resultlengthneeded=unum_toPattern(pattern, FALSE, NULL, resultlength, &status); in TestNumberFormatPadding()
1325 resultlength=resultlengthneeded+1; in TestNumberFormatPadding()
1326 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestNumberFormatPadding()
1327 unum_toPattern(pattern, FALSE, result, resultlength, &status); in TestNumberFormatPadding()
1348 resultlength=0; in TestNumberFormatPadding()
1350 resultlengthneeded=unum_formatDouble(pattern, d, NULL, resultlength, &pos1, &status); in TestNumberFormatPadding()
1354 resultlength=resultlengthneeded+1; in TestNumberFormatPadding()
1355 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestNumberFormatPadding()
1356 unum_formatDouble(pattern, d, result, resultlength, NULL, &status); in TestNumberFormatPadding()