Searched refs:mfo (Results 1 – 8 of 8) sorted by relevance
/php-src/ext/intl/msgformat/ |
H A D | msgformat_attr.c | 40 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, &spattern_error, &INTL_DATA_ERRO… in PHP_FUNCTION() 83 if (U_FAILURE(INTL_DATA_ERROR_CODE(mfo))) { in PHP_FUNCTION() 91 if(mfo->mf_data.orig_format) { in PHP_FUNCTION() 92 efree(mfo->mf_data.orig_format); in PHP_FUNCTION() 95 mfo->mf_data.orig_format_len = value_len; in PHP_FUNCTION() 97 if (mfo->mf_data.arg_types) { in PHP_FUNCTION() 98 zend_hash_destroy(mfo->mf_data.arg_types); in PHP_FUNCTION() 99 efree(mfo->mf_data.arg_types); in PHP_FUNCTION() [all …]
|
H A D | msgformat_parse.c | 37 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 96 memset(mfo, 0, sizeof(*mfo)); in PHP_FUNCTION() 97 msgformat_data_init(&mfo->mf_data); in PHP_FUNCTION() 101 if( U_FAILURE(INTL_DATA_ERROR_CODE((mfo))) ) in PHP_FUNCTION() 125 …MSG_FORMAT_OBJECT(mfo) = umsg_open(spattern, spattern_len, slocale, NULL, &INTL_DATA_ERROR_CODE(mf… in PHP_FUNCTION() 131 msgfmt_do_parse(mfo, source, src_len, return_value); in PHP_FUNCTION() [all …]
|
H A D | msgformat_format.c | 39 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 D | msgformat.c | 36 MessageFormatter_object* mfo; in msgfmt_ctor() local 73 if ((mfo)->mf_data.orig_format) { in msgfmt_ctor() 74 msgformat_data_free(&mfo->mf_data); in msgfmt_ctor() 78 (mfo)->mf_data.orig_format_len = pattern_len; in msgfmt_ctor() 81 …MSG_FORMAT_OBJECT(mfo) = umsg_open(spattern, spattern_len, locale, &parse_error, &INTL_DATA_ERROR_… in msgfmt_ctor() 141 MessageFormatter_object* mfo = NULL; in PHP_FUNCTION() local 150 mfo = Z_INTL_MESSAGEFORMATTER_P( object ); in PHP_FUNCTION() 153 RETURN_LONG( INTL_DATA_ERROR_CODE(mfo) ); in PHP_FUNCTION() 162 MessageFormatter_object* mfo = NULL; in PHP_FUNCTION() local 171 mfo = Z_INTL_MESSAGEFORMATTER_P( object ); in PHP_FUNCTION() [all …]
|
H A D | msgformat_class.h | 44 #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 D | msgformat_class.c | 34 MessageFormatter_object* mfo = php_intl_messageformatter_fetch_object(object); in MessageFormatter_object_free() local 36 zend_object_std_dtor( &mfo->zo ); in MessageFormatter_object_free() 38 msgformat_data_free( &mfo->mf_data ); in MessageFormatter_object_free() 59 MessageFormatter_object *mfo = php_intl_messageformatter_fetch_object(object); in MessageFormatter_object_clone() local 64 zend_objects_clone_members(&new_mfo->zo, &mfo->zo); in MessageFormatter_object_clone() 67 if (MSG_FORMAT_OBJECT(mfo) != NULL) { in MessageFormatter_object_clone() 69 MSG_FORMAT_OBJECT(new_mfo) = umsg_clone(MSG_FORMAT_OBJECT(mfo), &error); in MessageFormatter_object_clone()
|
H A D | msgformat_helpers.cpp | 99 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 D | msgformat_helpers.h | 19 void umsg_format_helper(MessageFormatter_object *mfo, HashTable *args,
|
Completed in 19 milliseconds