Lines Matching refs:err
103 intl_error& err) in umsg_get_numeric_types() argument
108 if (U_FAILURE(err.code)) { in umsg_get_numeric_types()
130 if (U_FAILURE(err.code)) { in umsg_get_numeric_types()
145 intl_error& err) in umsg_parse_format() argument
150 if (U_FAILURE(err.code)) { in umsg_parse_format()
155 return umsg_get_numeric_types(mfo, err); in umsg_parse_format()
181 for (int32_t i = 0; i < parts_count - 2 && U_SUCCESS(err.code); i++) { in umsg_parse_format()
203 intl_errors_set(&err, U_INVALID_FORMAT_ERROR, in umsg_parse_format()
213 intl_errors_set(&err, U_INVALID_FORMAT_ERROR, "Invalid part type encountered", 0); in umsg_parse_format()
258 intl_errors_set(&err, U_PARSE_ERROR, in umsg_parse_format()
280 intl_errors_set(&err, U_ARGUMENT_TYPE_MISMATCH, in umsg_parse_format()
288 if (U_FAILURE(err.code)) { in umsg_parse_format()
302 intl_error& err) in umsg_get_types() argument
309 return umsg_parse_format(mfo, mp, err); in umsg_get_types()
312 intl_errors_set(&err, U_UNSUPPORTED_ERROR, in umsg_get_types()
317 return umsg_get_numeric_types(mfo, err); in umsg_get_types()
322 intl_error& err) in umsg_set_timezone() argument
347 icu::StringEnumeration* fnames = mf->getFormatNames(err.code); in umsg_set_timezone()
348 if (!fnames || U_FAILURE(err.code)) { in umsg_set_timezone()
351 count = fnames->count(err.code); in umsg_set_timezone()
361 intl_errors_set(&err, U_MEMORY_ALLOCATION_ERROR, in umsg_set_timezone()
365 for (int i = 0; U_SUCCESS(err.code) && i < count; i++) { in umsg_set_timezone()
375 used_tz = timezone_process_timezone_argument(zvptr, &err, "msgfmt_format"); in umsg_set_timezone()
384 if (U_SUCCESS(err.code)) { in umsg_set_timezone()
399 intl_error& err = INTL_DATA_ERROR(mfo); in umsg_format_helper() local
401 if (U_FAILURE(err.code)) { in umsg_format_helper()
405 types = umsg_get_types(mfo, err); in umsg_format_helper()
407 umsg_set_timezone(mfo, err); in umsg_format_helper()
424 if (!U_SUCCESS(err.code)) { in umsg_format_helper()
431 intl_errors_set(&err, U_ILLEGAL_ARGUMENT_ERROR, in umsg_format_helper()
442 intl_stringFromChar(key, ZSTR_VAL(str_index), ZSTR_LEN(str_index), &err.code); in umsg_format_helper()
444 if (U_FAILURE(err.code)) { in umsg_format_helper()
448 intl_errors_set(&err, err.code, message, 1); in umsg_format_helper()
478 ZSTR_VAL(str), ZSTR_LEN(str), &err.code); in umsg_format_helper()
480 if (U_FAILURE(err.code)) { in umsg_format_helper()
484 intl_errors_set(&err, err.code, message, 1); in umsg_format_helper()
506 intl_errors_set(&err, U_ILLEGAL_ARGUMENT_ERROR, in umsg_format_helper()
515 intl_errors_set(&err, U_ILLEGAL_ARGUMENT_ERROR, in umsg_format_helper()
534 intl_errors_set(&err, U_ILLEGAL_ARGUMENT_ERROR, in umsg_format_helper()
551 double dd = intl_zval_to_millis(elem, &err, "msgfmt_format"); in umsg_format_helper()
552 if (U_FAILURE(err.code)) { in umsg_format_helper()
560 intl_errors_set(&err, err.code, message, 1); in umsg_format_helper()
570 intl_errors_set(&err, U_ILLEGAL_ARGUMENT_ERROR, in umsg_format_helper()
605 intl_errors_set(&err, in umsg_format_helper()
616 if (U_FAILURE(err.code)) { in umsg_format_helper()
625 fargs.empty() ? NULL : &fargs[0], arg_count, resultStr, err.code); in umsg_format_helper()
627 if (U_FAILURE(err.code)) { in umsg_format_helper()
628 intl_errors_set(&err, err.code, in umsg_format_helper()
635 resultStr.extract(*formatted, *formatted_len+1, err.code); in umsg_format_helper()
636 if (U_FAILURE(err.code)) { in umsg_format_helper()
637 intl_errors_set(&err, err.code, in umsg_format_helper()