Lines Matching refs:err
93 intl_error& err) in umsg_get_numeric_types() argument
98 if (U_FAILURE(err.code)) { in umsg_get_numeric_types()
118 intl_errors_set(&err, U_MEMORY_ALLOCATION_ERROR, in umsg_get_numeric_types()
124 if (U_FAILURE(err.code)) { in umsg_get_numeric_types()
139 intl_error& err) in umsg_parse_format() argument
144 if (U_FAILURE(err.code)) { in umsg_parse_format()
149 return umsg_get_numeric_types(mfo, err); in umsg_parse_format()
175 for (int32_t i = 0; i < parts_count - 2 && U_SUCCESS(err.code); i++) { in umsg_parse_format()
193 intl_errors_set(&err, U_MEMORY_ALLOCATION_ERROR, in umsg_parse_format()
201 intl_errors_set(&err, U_INVALID_FORMAT_ERROR, in umsg_parse_format()
209 intl_errors_set(&err, U_MEMORY_ALLOCATION_ERROR, in umsg_parse_format()
215 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()
476 Z_STRVAL_P(elem), Z_STRLEN_P(elem), &err.code); in umsg_format_helper()
478 if (U_FAILURE(err.code)) { in umsg_format_helper()
482 intl_errors_set(&err, err.code, message, 1); in umsg_format_helper()
514 intl_errors_set(&err, U_ILLEGAL_ARGUMENT_ERROR, in umsg_format_helper()
523 intl_errors_set(&err, U_ILLEGAL_ARGUMENT_ERROR, in umsg_format_helper()
544 intl_errors_set(&err, U_ILLEGAL_ARGUMENT_ERROR, in umsg_format_helper()
563 double dd = intl_zval_to_millis(elem, &err, "msgfmt_format"); in umsg_format_helper()
564 if (U_FAILURE(err.code)) { in umsg_format_helper()
572 intl_errors_set(&err, err.code, message, 1); in umsg_format_helper()
582 intl_errors_set(&err, U_ILLEGAL_ARGUMENT_ERROR, in umsg_format_helper()
617 intl_errors_set(&err, in umsg_format_helper()
628 if (U_FAILURE(err.code)) { in umsg_format_helper()
637 fargs.empty() ? NULL : &fargs[0], arg_count, resultStr, err.code); in umsg_format_helper()
639 if (U_FAILURE(err.code)) { in umsg_format_helper()
640 intl_errors_set(&err, err.code, in umsg_format_helper()
647 resultStr.extract(*formatted, *formatted_len+1, err.code); in umsg_format_helper()
648 if (U_FAILURE(err.code)) { in umsg_format_helper()
649 intl_errors_set(&err, err.code, in umsg_format_helper()