Home
last modified time | relevance | path

Searched refs:mf_data (Results 1 – 9 of 9) sorted by relevance

/PHP-7.4/ext/intl/msgformat/
H A Dmsgformat_data.c31 if( !mf_data ) in msgformat_data_init()
34 mf_data->umsgf = NULL; in msgformat_data_init()
36 mf_data->arg_types = NULL; in msgformat_data_init()
37 mf_data->tz_set = 0; in msgformat_data_init()
47 if (!mf_data) in msgformat_data_free()
50 if (mf_data->umsgf) in msgformat_data_free()
53 if (mf_data->orig_format) { in msgformat_data_free()
58 if (mf_data->arg_types) { in msgformat_data_free()
60 efree(mf_data->arg_types); in msgformat_data_free()
64 mf_data->umsgf = NULL; in msgformat_data_free()
[all …]
H A Dmsgformat_attr.c49 if(mfo->mf_data.orig_format) { in PHP_FUNCTION()
50 RETURN_STRINGL(mfo->mf_data.orig_format, mfo->mf_data.orig_format_len); in PHP_FUNCTION()
100 if(mfo->mf_data.orig_format) { in PHP_FUNCTION()
101 efree(mfo->mf_data.orig_format); in PHP_FUNCTION()
103 mfo->mf_data.orig_format = estrndup(value, value_len); in PHP_FUNCTION()
104 mfo->mf_data.orig_format_len = value_len; in PHP_FUNCTION()
106 if (mfo->mf_data.arg_types) { in PHP_FUNCTION()
107 zend_hash_destroy(mfo->mf_data.arg_types); in PHP_FUNCTION()
108 efree(mfo->mf_data.arg_types); in PHP_FUNCTION()
109 mfo->mf_data.arg_types = NULL; in PHP_FUNCTION()
H A Dmsgformat_class.h31 msgformat_data mf_data; member
51 intl_errors_set(&mfo->mf_data.error, U_ILLEGAL_ARGUMENT_ERROR, \
56 #define MSG_FORMAT_OBJECT(mfo) (mfo)->mf_data.umsgf
H A Dmsgformat_data.h39 void msgformat_data_init( msgformat_data* mf_data );
40 void msgformat_data_free( msgformat_data* mf_data );
H A Dmsgformat.c75 if ((mfo)->mf_data.orig_format) { in msgfmt_ctor()
76 msgformat_data_free(&mfo->mf_data); in msgfmt_ctor()
79 (mfo)->mf_data.orig_format = estrndup(pattern, pattern_len); in msgfmt_ctor()
80 (mfo)->mf_data.orig_format_len = pattern_len; in msgfmt_ctor()
194 message = intl_error_get_message( &mfo->mf_data.error ); in PHP_FUNCTION()
H A Dmsgformat_helpers.cpp102 if (mfo->mf_data.arg_types) { in umsg_get_numeric_types()
104 return mfo->mf_data.arg_types; in umsg_get_numeric_types()
108 *(MessageFormat*)mfo->mf_data.umsgf, parts_count); in umsg_get_numeric_types()
127 mfo->mf_data.arg_types = ret; in umsg_get_numeric_types()
147 if (mfo->mf_data.arg_types) { in umsg_parse_format()
149 return mfo->mf_data.arg_types; in umsg_parse_format()
282 mfo->mf_data.arg_types = ret; in umsg_parse_format()
290 MessageFormat *mf = (MessageFormat *)mfo->mf_data.umsgf; in umsg_get_types()
300 MessageFormat *mf = (MessageFormat *)mfo->mf_data.umsgf; in umsg_set_timezone()
310 if (mfo->mf_data.tz_set) { in umsg_set_timezone()
[all …]
H A Dmsgformat_parse.c115 msgformat_data_init(&mfo->mf_data); in PHP_FUNCTION()
152 msgformat_data_free(&mfo->mf_data); in PHP_FUNCTION()
H A Dmsgformat_format.c112 msgformat_data_init(&mfo->mf_data); in PHP_FUNCTION()
164 msgformat_data_free(&mfo->mf_data); in PHP_FUNCTION()
H A Dmsgformat_class.c43 msgformat_data_free( &mfo->mf_data ); in MessageFormatter_object_free()
53 msgformat_data_init( &intern->mf_data ); in MessageFormatter_object_create()

Completed in 21 milliseconds