Lines Matching refs:mfo
32 static void msgfmt_do_format(MessageFormatter_object *mfo, zval *args, zval *return_value) in msgfmt_do_format() argument
37 umsg_format_helper(mfo, Z_ARRVAL_P(args), &formatted, &formatted_len); in msgfmt_do_format()
39 if (U_FAILURE(INTL_DATA_ERROR_CODE(mfo))) { in msgfmt_do_format()
45 INTL_METHOD_RETVAL_UTF8(mfo, formatted, formatted_len, 1); in msgfmt_do_format()
67 msgfmt_do_format(mfo, args, return_value); in PHP_FUNCTION()
82 MessageFormatter_object *mfo = &mf; in PHP_FUNCTION() local
94 memset(mfo, 0, sizeof(*mfo)); in PHP_FUNCTION()
95 msgformat_data_init(&mfo->mf_data); in PHP_FUNCTION()
98 …_convert_utf8_to_utf16(&spattern, &spattern_len, pattern, pattern_len, &INTL_DATA_ERROR_CODE(mfo)); in PHP_FUNCTION()
99 if( U_FAILURE(INTL_DATA_ERROR_CODE((mfo))) ) in PHP_FUNCTION()
115 if(msgformat_fix_quotes(&spattern, &spattern_len, &INTL_DATA_ERROR_CODE(mfo)) != SUCCESS) { in PHP_FUNCTION()
123 …MSG_FORMAT_OBJECT(mfo) = umsg_open(spattern, spattern_len, slocale, &parse_error, &INTL_DATA_ERROR… in PHP_FUNCTION()
129 if (U_FAILURE(INTL_DATA_ERROR_CODE(mfo))) { in PHP_FUNCTION()
130 if (INTL_DATA_ERROR_CODE( mfo ) == U_PATTERN_SYNTAX_ERROR) { in PHP_FUNCTION()
138 intl_error_set_code(/* intl_error* */ NULL, INTL_DATA_ERROR_CODE( mfo ) ); in PHP_FUNCTION()
145 umsg_close(MSG_FORMAT_OBJECT(mfo)); in PHP_FUNCTION()
149 msgfmt_do_format(mfo, args, return_value); in PHP_FUNCTION()
152 msgformat_data_free(&mfo->mf_data); in PHP_FUNCTION()