Home
last modified time | relevance | path

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

/PHP-7.0/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.h35 msgformat_data mf_data; member
55 intl_errors_set(&mfo->mf_data.error, U_ILLEGAL_ARGUMENT_ERROR, \
60 #define MSG_FORMAT_OBJECT(mfo) (mfo)->mf_data.umsgf
H A Dmsgformat.c74 if ((mfo)->mf_data.orig_format) { in msgfmt_ctor()
75 msgformat_data_free(&mfo->mf_data); in msgfmt_ctor()
78 (mfo)->mf_data.orig_format = estrndup(pattern, pattern_len); in msgfmt_ctor()
79 (mfo)->mf_data.orig_format_len = pattern_len; in msgfmt_ctor()
177 message = intl_error_get_message( &mfo->mf_data.error ); in PHP_FUNCTION()
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_helpers.cpp100 if (mfo->mf_data.arg_types) { in umsg_get_numeric_types()
102 return mfo->mf_data.arg_types; in umsg_get_numeric_types()
106 *(MessageFormat*)mfo->mf_data.umsgf, parts_count); in umsg_get_numeric_types()
129 mfo->mf_data.arg_types = ret; in umsg_get_numeric_types()
150 if (mfo->mf_data.arg_types) { in umsg_parse_format()
152 return mfo->mf_data.arg_types; in umsg_parse_format()
293 mfo->mf_data.arg_types = ret; in umsg_parse_format()
302 MessageFormat *mf = (MessageFormat *)mfo->mf_data.umsgf; in umsg_get_types()
322 MessageFormat *mf = (MessageFormat *)mfo->mf_data.umsgf; in umsg_set_timezone()
332 if (mfo->mf_data.tz_set) { in umsg_set_timezone()
[all …]
H A Dmsgformat_format.c122 msgformat_data_init(&mfo->mf_data); in PHP_FUNCTION()
159 msgformat_data_free(&mfo->mf_data); in PHP_FUNCTION()
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_class.c50 msgformat_data_free( &mfo->mf_data ); in MessageFormatter_object_free()
60 msgformat_data_init( &intern->mf_data ); in MessageFormatter_object_create()

Completed in 17 milliseconds