Home
last modified time | relevance | path

Searched refs:mfo (Results 1 – 8 of 8) sorted by relevance

/PHP-8.1/ext/intl/msgformat/
H A Dmsgformat_attr.c40 if(mfo->mf_data.orig_format) { in PHP_FUNCTION()
41 RETURN_STRINGL(mfo->mf_data.orig_format, mfo->mf_data.orig_format_len); in PHP_FUNCTION()
79 …umsg_applyPattern(MSG_FORMAT_OBJECT(mfo), spattern, spattern_len, NULL, &INTL_DATA_ERROR_CODE(mfo)… in PHP_FUNCTION()
85 if(mfo->mf_data.orig_format) { in PHP_FUNCTION()
86 efree(mfo->mf_data.orig_format); in PHP_FUNCTION()
89 mfo->mf_data.orig_format_len = value_len; in PHP_FUNCTION()
91 if (mfo->mf_data.arg_types) { in PHP_FUNCTION()
92 zend_hash_destroy(mfo->mf_data.arg_types); in PHP_FUNCTION()
93 efree(mfo->mf_data.arg_types); in PHP_FUNCTION()
94 mfo->mf_data.arg_types = NULL; in PHP_FUNCTION()
[all …]
H A Dmsgformat_parse.c37 INTL_METHOD_CHECK_STATUS(mfo, "Converting parse string failed"); in msgfmt_do_parse()
39 …umsg_parse_helper(MSG_FORMAT_OBJECT(mfo), &count, &fargs, usource, usrc_len, &INTL_DATA_ERROR_CODE… in msgfmt_do_parse()
43 INTL_METHOD_CHECK_STATUS(mfo, "Parsing failed"); in msgfmt_do_parse()
71 msgfmt_do_parse(mfo, source, source_len, return_value); in PHP_FUNCTION()
87 MessageFormatter_object *mfo = &mf; in PHP_FUNCTION() local
97 memset(mfo, 0, sizeof(*mfo)); in PHP_FUNCTION()
98 msgformat_data_init(&mfo->mf_data); in PHP_FUNCTION()
102 if( U_FAILURE(INTL_DATA_ERROR_CODE((mfo))) ) in PHP_FUNCTION()
126 …MSG_FORMAT_OBJECT(mfo) = umsg_open(spattern, spattern_len, slocale, NULL, &INTL_DATA_ERROR_CODE(mf… in PHP_FUNCTION()
132 msgfmt_do_parse(mfo, source, src_len, return_value); in PHP_FUNCTION()
[all …]
H A Dmsgformat_format.c39 if (U_FAILURE(INTL_DATA_ERROR_CODE(mfo))) { 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()
99 if( U_FAILURE(INTL_DATA_ERROR_CODE((mfo))) ) 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()
145 umsg_close(MSG_FORMAT_OBJECT(mfo)); in PHP_FUNCTION()
149 msgfmt_do_format(mfo, args, return_value); in PHP_FUNCTION()
[all …]
H A Dmsgformat.c36 MessageFormatter_object* mfo; in msgfmt_ctor() local
75 if ((mfo)->mf_data.orig_format) { in msgfmt_ctor()
76 msgformat_data_free(&mfo->mf_data); in msgfmt_ctor()
80 (mfo)->mf_data.orig_format_len = pattern_len; in msgfmt_ctor()
83 …MSG_FORMAT_OBJECT(mfo) = umsg_open(spattern, spattern_len, locale, &parse_error, &INTL_DATA_ERROR_… in msgfmt_ctor()
143 MessageFormatter_object* mfo = NULL; in PHP_FUNCTION() local
152 mfo = Z_INTL_MESSAGEFORMATTER_P( object ); in PHP_FUNCTION()
155 RETURN_LONG( INTL_DATA_ERROR_CODE(mfo) ); in PHP_FUNCTION()
164 MessageFormatter_object* mfo = NULL; in PHP_FUNCTION() local
173 mfo = Z_INTL_MESSAGEFORMATTER_P( object ); in PHP_FUNCTION()
[all …]
H A Dmsgformat_class.c36 zend_object_std_dtor( &mfo->zo ); in MessageFormatter_object_free()
38 msgformat_data_free( &mfo->mf_data ); in MessageFormatter_object_free()
61 MessageFormatter_object *mfo, *new_mfo; in MessageFormatter_object_clone() local
64 mfo = php_intl_messageformatter_fetch_object(object); in MessageFormatter_object_clone()
65 intl_error_reset(INTL_DATA_ERROR_P(mfo)); in MessageFormatter_object_clone()
70 zend_objects_clone_members(&new_mfo->zo, &mfo->zo); in MessageFormatter_object_clone()
73 if (MSG_FORMAT_OBJECT(mfo) != NULL) { in MessageFormatter_object_clone()
74 MSG_FORMAT_OBJECT(new_mfo) = umsg_clone(MSG_FORMAT_OBJECT(mfo), in MessageFormatter_object_clone()
75 &INTL_DATA_ERROR_CODE(mfo)); in MessageFormatter_object_clone()
77 if (U_FAILURE(INTL_DATA_ERROR_CODE(mfo))) { in MessageFormatter_object_clone()
[all …]
H A Dmsgformat_class.h44 #define MSG_FORMAT_METHOD_INIT_VARS INTL_METHOD_INIT_VARS(MessageFormatter, mfo)
45 #define MSG_FORMAT_METHOD_FETCH_OBJECT_NO_CHECK INTL_METHOD_FETCH_OBJECT(INTL_MESSAGEFORMATTER, mfo)
48 if (MSG_FORMAT_OBJECT(mfo) == NULL) { \
53 #define MSG_FORMAT_OBJECT(mfo) (mfo)->mf_data.umsgf argument
H A Dmsgformat_helpers.cpp99 if (mfo->mf_data.arg_types) { in umsg_get_numeric_types()
101 return mfo->mf_data.arg_types; in umsg_get_numeric_types()
124 mfo->mf_data.arg_types = ret; in umsg_get_numeric_types()
144 if (mfo->mf_data.arg_types) { in umsg_parse_format()
146 return mfo->mf_data.arg_types; in umsg_parse_format()
279 mfo->mf_data.arg_types = ret; in umsg_parse_format()
291 return umsg_parse_format(mfo, mp, err); in umsg_get_types()
307 if (mfo->mf_data.tz_set) { in umsg_set_timezone()
356 mfo->mf_data.tz_set = 1; in umsg_set_timezone()
380 types = umsg_get_types(mfo, err); in umsg_format_helper()
[all …]
H A Dmsgformat_helpers.h19 void umsg_format_helper(MessageFormatter_object *mfo, HashTable *args,

Completed in 42 milliseconds