Lines Matching refs:err
90 intl_error& err) in umsg_get_numeric_types() argument
95 if (U_FAILURE(err.code)) { in umsg_get_numeric_types()
117 if (U_FAILURE(err.code)) { in umsg_get_numeric_types()
131 intl_error& err) in umsg_parse_format() argument
136 if (U_FAILURE(err.code)) { in umsg_parse_format()
141 return umsg_get_numeric_types(mfo, err); in umsg_parse_format()
167 for (int32_t i = 0; i < parts_count - 2 && U_SUCCESS(err.code); i++) { in umsg_parse_format()
189 intl_errors_set(&err, U_INVALID_FORMAT_ERROR, in umsg_parse_format()
199 intl_errors_set(&err, U_INVALID_FORMAT_ERROR, "Invalid part type encountered", 0); in umsg_parse_format()
244 intl_errors_set(&err, U_PARSE_ERROR, in umsg_parse_format()
264 intl_errors_set(&err, U_ARGUMENT_TYPE_MISMATCH, in umsg_parse_format()
272 if (U_FAILURE(err.code)) { in umsg_parse_format()
285 intl_error& err) in umsg_get_types() argument
291 return umsg_parse_format(mfo, mp, err); in umsg_get_types()
295 intl_error& err) in umsg_set_timezone() argument
318 icu::StringEnumeration* fnames = mf->getFormatNames(err.code); in umsg_set_timezone()
319 if (!fnames || U_FAILURE(err.code)) { in umsg_set_timezone()
322 count = fnames->count(err.code); in umsg_set_timezone()
332 intl_errors_set(&err, U_MEMORY_ALLOCATION_ERROR, in umsg_set_timezone()
336 for (int i = 0; U_SUCCESS(err.code) && i < count; i++) { in umsg_set_timezone()
346 used_tz = timezone_process_timezone_argument(&nullzv, &err, "msgfmt_format"); in umsg_set_timezone()
355 if (U_SUCCESS(err.code)) { in umsg_set_timezone()
374 intl_error& err = INTL_DATA_ERROR(mfo); in umsg_format_helper() local
376 if (U_FAILURE(err.code)) { in umsg_format_helper()
380 types = umsg_get_types(mfo, err); in umsg_format_helper()
382 umsg_set_timezone(mfo, err); in umsg_format_helper()
400 if (!U_SUCCESS(err.code)) { in umsg_format_helper()
407 intl_errors_set(&err, U_ILLEGAL_ARGUMENT_ERROR, in umsg_format_helper()
418 intl_stringFromChar(key, ZSTR_VAL(str_index), ZSTR_LEN(str_index), &err.code); in umsg_format_helper()
420 if (U_FAILURE(err.code)) { in umsg_format_helper()
424 intl_errors_set(&err, err.code, message, 1); in umsg_format_helper()
454 ZSTR_VAL(str), ZSTR_LEN(str), &err.code); in umsg_format_helper()
456 if (U_FAILURE(err.code)) { in umsg_format_helper()
460 intl_errors_set(&err, err.code, message, 1); in umsg_format_helper()
482 intl_errors_set(&err, U_ILLEGAL_ARGUMENT_ERROR, in umsg_format_helper()
491 intl_errors_set(&err, U_ILLEGAL_ARGUMENT_ERROR, in umsg_format_helper()
510 intl_errors_set(&err, U_ILLEGAL_ARGUMENT_ERROR, in umsg_format_helper()
527 double dd = intl_zval_to_millis(elem, &err, "msgfmt_format"); in umsg_format_helper()
528 if (U_FAILURE(err.code)) { in umsg_format_helper()
536 intl_errors_set(&err, err.code, message, 1); in umsg_format_helper()
546 intl_errors_set(&err, U_ILLEGAL_ARGUMENT_ERROR, in umsg_format_helper()
581 intl_errors_set(&err, in umsg_format_helper()
592 if (U_FAILURE(err.code)) { in umsg_format_helper()
601 fargs.empty() ? NULL : &fargs[0], arg_count, resultStr, err.code); in umsg_format_helper()
603 if (U_FAILURE(err.code)) { in umsg_format_helper()
604 intl_errors_set(&err, err.code, in umsg_format_helper()
611 resultStr.extract(*formatted, *formatted_len+1, err.code); in umsg_format_helper()
612 if (U_FAILURE(err.code)) { in umsg_format_helper()
613 intl_errors_set(&err, err.code, in umsg_format_helper()