Lines Matching refs:ec
1461 UErrorCode ec = U_ZERO_ERROR;
1469 MessageFormat msg(pattern, ec);
1470 if (U_FAILURE(ec)) {
1471 dataerrln("FAIL: constructor failed - %s", u_errorName(ec));
1501 msg.format(ARGS_OBJ, result, ec);
1515 UErrorCode ec = U_ZERO_ERROR;
1536 NumberFormat* numFmt = NumberFormat::createInstance(locale, ec);
1537 if (U_FAILURE(ec)) {
1543 MessageFormat* fmt = new MessageFormat(formats[i], locale, ec);
1547 ec = U_ZERO_ERROR;
1548 numFmt->parse(values[j], args[0], ec);
1549 if (U_FAILURE(ec)) {
1554 fmt->format(args, 1, result, fp, ec);
1555 logln((UnicodeString)"value: " + toString(args[0]) + " --> " + result + UnicodeString(" ec: ") + u_errorName(ec));
1558 Formattable* parseResult = fmt->parse(result, count, ec);
1630 UErrorCode ec = U_ZERO_ERROR;
1631 MessageFormat compMsg("", Locale::getUS(), ec);
1632 compMsg.applyPattern(pattern, UMSGPAT_APOS_DOUBLE_REQUIRED, NULL, ec);
1637 MessageFormat icuMsg("", Locale::getUS(), ec);
1638 icuMsg.applyPattern(pattern, UMSGPAT_APOS_DOUBLE_OPTIONAL, NULL, ec);
1648 compMsg.format(zero0, 1, buffer1, fieldpos, ec));
1651 icuMsg.format(zero0, 1, buffer2, fieldpos, ec));
1658 compMsg.applyPattern(pattern, ec);
1659 icuMsg.applyPattern(pattern, ec);
1660 if (U_FAILURE(ec)) {
1661 dataerrln("Unable to applyPattern - %s", u_errorName(ec));
1665 compMsg.format(zero0, 1, buffer1, fieldpos, ec));
1668 icuMsg.format(zero0, 1, buffer2, fieldpos, ec));