Home
last modified time | relevance | path

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

/PHP-5.3/ext/intl/msgformat/
H A Dmsgformat.c37 MessageFormatter_object* mfo; in msgfmt_ctor() local
73 if ((mfo)->mf_data.orig_format) { in msgfmt_ctor()
74 msgformat_data_free(&mfo->mf_data TSRMLS_CC); in msgfmt_ctor()
77 (mfo)->mf_data.orig_format = estrndup(pattern, pattern_len); 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, NULL, &INTL_DATA_ERROR_CODE(mfo in msgfmt_ctor()
87 INTL_CTOR_CHECK_STATUS(mfo, "msgfmt_create: message formatter creation failed"); in msgfmt_ctor()
121 MessageFormatter_object* mfo = NULL; in PHP_FUNCTION() local
136 RETURN_LONG( INTL_DATA_ERROR_CODE(mfo) ); in PHP_FUNCTION()
149 MessageFormatter_object* mfo = NULL; in PHP_FUNCTION() local
[all …]
H A Dmsgformat_parse.c40 INTL_METHOD_CHECK_STATUS(mfo, "Converting parse string failed"); in msgfmt_do_parse()
42 …umsg_parse_helper(MSG_FORMAT_OBJECT(mfo), &count, &fargs, usource, usrc_len, &INTL_DATA_ERROR_CODE… in msgfmt_do_parse()
46 INTL_METHOD_CHECK_STATUS(mfo, "Parsing failed"); in msgfmt_do_parse()
81 msgfmt_do_parse(mfo, source, source_len, return_value TSRMLS_CC); in PHP_FUNCTION()
101 MessageFormatter_object *mfo = &mf; in PHP_FUNCTION() local
113 msgformat_data_init(&mfo->mf_data TSRMLS_CC); in PHP_FUNCTION()
117 if( U_FAILURE(INTL_DATA_ERROR_CODE((mfo))) ) in PHP_FUNCTION()
141 …MSG_FORMAT_OBJECT(mfo) = umsg_open(spattern, spattern_len, slocale, NULL, &INTL_DATA_ERROR_CODE(mf… in PHP_FUNCTION()
145 INTL_METHOD_CHECK_STATUS(mfo, "Creating message formatter failed"); in PHP_FUNCTION()
147 msgfmt_do_parse(mfo, source, src_len, return_value TSRMLS_CC); in PHP_FUNCTION()
[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, 1); in PHP_FUNCTION()
83 INTL_METHOD_CHECK_STATUS(mfo, "Error converting pattern to UTF-16" ); in PHP_FUNCTION()
86 if(msgformat_fix_quotes(&spattern, &spattern_len, &INTL_DATA_ERROR_CODE(mfo)) != SUCCESS) { in PHP_FUNCTION()
94 …umsg_applyPattern(MSG_FORMAT_OBJECT(mfo), spattern, spattern_len, NULL, &INTL_DATA_ERROR_CODE(mfo)… in PHP_FUNCTION()
98 INTL_METHOD_CHECK_STATUS(mfo, "Error setting symbol value"); 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()
[all …]
H A Dmsgformat_format.c46 if(count < umsg_format_arg_count(MSG_FORMAT_OBJECT(mfo))) { in msgfmt_do_format()
66 …umsg_format_helper(MSG_FORMAT_OBJECT(mfo), count, fargs, &formatted, &formatted_len, &INTL_DATA_ER… in msgfmt_do_format()
74 if (formatted && U_FAILURE( INTL_DATA_ERROR_CODE(mfo) ) ) { in msgfmt_do_format()
78 INTL_METHOD_CHECK_STATUS( mfo, "Number formatting failed" ); in msgfmt_do_format()
107 msgfmt_do_format(mfo, args, return_value TSRMLS_CC); in PHP_FUNCTION()
126 MessageFormatter_object *mfo = &mf; in PHP_FUNCTION() local
138 msgformat_data_init(&mfo->mf_data TSRMLS_CC); in PHP_FUNCTION()
142 if( U_FAILURE(INTL_DATA_ERROR_CODE((mfo))) ) in PHP_FUNCTION()
166 …MSG_FORMAT_OBJECT(mfo) = umsg_open(spattern, spattern_len, slocale, NULL, &INTL_DATA_ERROR_CODE(mf… in PHP_FUNCTION()
172 msgfmt_do_format(mfo, args, return_value TSRMLS_CC); in PHP_FUNCTION()
[all …]
H A Dmsgformat_class.h39 #define MSG_FORMAT_METHOD_INIT_VARS INTL_METHOD_INIT_VARS(MessageFormatter, mfo)
40 #define MSG_FORMAT_METHOD_FETCH_OBJECT_NO_CHECK INTL_METHOD_FETCH_OBJECT(MessageFormatter, mfo)
43 if (MSG_FORMAT_OBJECT(mfo) == NULL) { \
44 intl_errors_set(&mfo->mf_data.error, U_ILLEGAL_ARGUMENT_ERROR, \
49 #define MSG_FORMAT_OBJECT(mfo) (mfo)->mf_data.umsgf argument
H A Dmsgformat_class.c46 MessageFormatter_object* mfo = (MessageFormatter_object*)object; in MessageFormatter_object_free() local
48 zend_object_std_dtor( &mfo->zo TSRMLS_CC ); in MessageFormatter_object_free()
50 msgformat_data_free( &mfo->mf_data TSRMLS_CC ); in MessageFormatter_object_free()
52 efree( mfo ); in MessageFormatter_object_free()
83 MessageFormatter_object *mfo, *new_mfo; in MessageFormatter_object_clone() local
89 zend_objects_clone_members(&new_mfo->zo, new_obj_val, &mfo->zo, handle TSRMLS_CC); in MessageFormatter_object_clone()
92 if (MSG_FORMAT_OBJECT(mfo) != NULL) { in MessageFormatter_object_clone()
93 MSG_FORMAT_OBJECT(new_mfo) = umsg_clone(MSG_FORMAT_OBJECT(mfo), in MessageFormatter_object_clone()
94 &INTL_DATA_ERROR_CODE(mfo)); in MessageFormatter_object_clone()
96 if (U_FAILURE(INTL_DATA_ERROR_CODE(mfo))) { in MessageFormatter_object_clone()
[all …]

Completed in 16 milliseconds