Lines Matching defs:ulen
2507 int32_t ulen, radix = unumsys_getRadix(unumsys);
2514 ulen = unumsys_getDescription(unumsys, ubuf, kNumSysDescripBufMax, &status);
2515 (void)ulen; // Suppress variable not used warning.
2821 int32_t ulen = unum_toPattern(unumfmt, false, ubuf, kUBufSize, &status);
2825 log_err("unum_toPattern result wrong, expected %s, got %s\n", aescstrdup(currFmtToPatExpected,-1), aescstrdup(ubuf,ulen));
2829 ulen = unum_formatDouble(unumfmt, -100.0, ubuf, kUBufSize, NULL, &status);
2833 log_err("unum_formatDouble result wrong, expected %s, got %s\n", aescstrdup(currFmtResultExpected,-1), aescstrdup(ubuf,ulen));
3138 int32_t ulen = unum_formatDoubleForFields(unum, itemPtr->value, ubuf, kUBufSize, fpositer, &status);
3149 itemPtr->locale, aescstrdup(ubuf, ulen), fptr->field, fptr->beginPos, fptr->endPos, field, beginPos, endPos);
3152 itemPtr->locale, aescstrdup(ubuf, ulen), field, beginPos, endPos);
3347 int32_t ulen;
3389 ulen = unum_toPattern(unf, false, ubuf, kUBufMax, &status);
3390 (void)ulen;
3400 ulen = unum_formatDouble(unf, itemPtr->valueToFmt, ubuf, kUBufMax, NULL, &status);
3432 int32_t ulen = unum_toPattern(unum, false, ubuf, kUBufMax, &status);
3437 if (ulen > 0 && ubuf[0]==u'*') {
3442 unum_applyPattern(unum, false, ubuf, ulen, NULL, &status);
3446 ulen = unum_formatDecimal(unum, "24", -1, ubuf, kUBufMax, NULL, &status);
3471 int32_t ulen;
3475 ulen = unum_toPattern(unum, false, ubuf, kUBufMax, &status);
3478 log_info("unum_toPattern (%d): %s\n", ulen, bbuf);
3483 ulen = unum_formatDouble(unum, value, ubuf, kUBufMax, NULL, &status);
3503 int minInt, minFrac, ulen;
3513 ulen = unum_toPattern(unum, false, ubuf, kUBufMax, &status);
3516 } else if (ulen < 3 || u_strstr(ubuf, u"#.#")==NULL) {
3518 log_info("after setting minInt=minFrac=0, expect pattern to contain \"#.#\", but get (%d): \"%s\"\n", ulen, bbuf);
3522 ulen = unum_formatDouble(unum, 10.0, ubuf, kUBufMax, NULL, &status);
3524 log_err("unum_formatDouble 10.0 ulen %d fails with %s\n", ulen, u_errorName(status));
3531 ulen = unum_formatDouble(unum, 0.9, ubuf, kUBufMax, NULL, &status);
3533 log_err("unum_formatDouble 0.9 ulen %d fails with %s\n", ulen, u_errorName(status));
3540 ulen = unum_formatDouble(unum, 0.0, ubuf, kUBufMax, NULL, &status);
3542 log_err("unum_formatDouble 0.0 ulen %d fails with %s\n", ulen, u_errorName(status));
3563 ulen = unum_formatDouble(unum, 10.0, ubuf, kUBufMax, NULL, &status);
3565 log_err("unum_formatDouble (CURRENCY) 10.0 ulen %d fails with %s\n", ulen, u_errorName(status));
3572 ulen = unum_formatDouble(unum, 0.9, ubuf, kUBufMax, NULL, &status);
3574 log_err("unum_formatDouble (CURRENCY) 0.9 ulen %d fails with %s\n", ulen, u_errorName(status));
3581 ulen = unum_formatDouble(unum, 0.0, ubuf, kUBufMax, NULL, &status);
3583 log_err("unum_formatDouble (CURRENCY) 0.0 ulen %d fails with %s\n", ulen, u_errorName(status));
3694 int32_t ppos, ulen;
3707 ulen = unum_formatDouble(unum, posValToUse, ubuf, kUBufMax, NULL, &status);
3715 val = unum_parseDouble(unum, ubuf, ulen, &ppos, &status);
3718 } else if (ppos != ulen || val != posValToUse) {
3719 log_err("locale %s unum_parseDouble expect ppos %d, val %.1f; get %d, %.2f\n", locale, ulen, posValToUse, ppos, val);
3723 ulen = unum_formatDouble(unum, negValToUse, ubuf, kUBufMax, NULL, &status);
3731 val = unum_parseDouble(unum, ubuf, ulen, &ppos, &status);
3734 } else if (ppos != ulen || val != negValToUse) {
3735 log_err("locale %s unum_parseDouble expect ppos %d, val %.1f; get %d, %.2f\n", locale, ulen, negValToUse, ppos, val);
3746 ulen = unum_formatDouble(unum, posValToUse, ubuf, kUBufMax, NULL, &status);
3754 val = unum_parseDouble(unum, ubuf, ulen, &ppos, &status);
3757 } else if (ppos != ulen || val != posValToUse) {
3758 log_err("locale %s with \"#,##0.00¤\" unum_parseDouble expect ppos %d, val %.1f; get %d, %.2f\n", locale, ulen, posValToUse, ppos, val);
3762 ulen = unum_formatDouble(unum, negValToUse, ubuf, kUBufMax, NULL, &status);
3770 val = unum_parseDouble(unum, ubuf, ulen, &ppos, &status);
3773 } else if (ppos != ulen || val != negValToUse) {
3774 log_err("locale %s with \"#,##0.00¤\" unum_parseDouble expect ppos %d, val %.1f; get %d, %.2f\n", locale, ulen, negValToUse, ppos, val);