Searched defs:mfo (Results 1 - 5 of 5) sorted by relevance

/PHP_5_6/ext/intl/msgformat/
H A Dmsgformat.c37 MessageFormatter_object* mfo; local
56 intl_convert_utf8_to_utf16(&spattern, &spattern_len, pattern, pattern_len, &INTL_DATA_ERROR_CODE(mfo));
57 INTL_CTOR_CHECK_STATUS(mfo, "msgfmt_create: error converting pattern to UTF-16");
68 if(msgformat_fix_quotes(&spattern, &spattern_len, &INTL_DATA_ERROR_CODE(mfo)) != SUCCESS) {
69 INTL_CTOR_CHECK_STATUS(mfo, "msgfmt_create: error converting pattern to quote-friendly format");
73 if ((mfo)->mf_data.orig_format) {
74 msgformat_data_free(&mfo->mf_data TSRMLS_CC);
77 (mfo)->mf_data.orig_format = estrndup(pattern, pattern_len);
78 (mfo)->mf_data.orig_format_len = pattern_len;
81 MSG_FORMAT_OBJECT(mfo)
121 MessageFormatter_object* mfo = NULL; local
149 MessageFormatter_object* mfo = NULL; local
[all...]
H A Dmsgformat_class.c46 MessageFormatter_object* mfo = (MessageFormatter_object*)object; local
48 zend_object_std_dtor( &mfo->zo TSRMLS_CC );
50 msgformat_data_free( &mfo->mf_data TSRMLS_CC );
52 efree( mfo );
84 MessageFormatter_object *mfo, *new_mfo; local
90 zend_objects_clone_members(&new_mfo->zo, new_obj_val, &mfo->zo, handle TSRMLS_CC);
93 if (MSG_FORMAT_OBJECT(mfo) != NULL) {
94 MSG_FORMAT_OBJECT(new_mfo) = umsg_clone(MSG_FORMAT_OBJECT(mfo),
95 &INTL_DATA_ERROR_CODE(mfo));
97 if (U_FAILURE(INTL_DATA_ERROR_CODE(mfo))) {
[all...]
H A Dmsgformat_format.c35 static void msgfmt_do_format(MessageFormatter_object *mfo, zval *args, zval *return_value TSRMLS_DC) argument
49 umsg_format_helper(mfo, args_copy, &formatted, &formatted_len TSRMLS_CC);
54 if (formatted && U_FAILURE(INTL_DATA_ERROR_CODE(mfo))) {
58 if (U_FAILURE(INTL_DATA_ERROR_CODE(mfo))) {
61 INTL_METHOD_RETVAL_UTF8(mfo, formatted, formatted_len, 1);
90 msgfmt_do_format(mfo, args, return_value TSRMLS_CC);
109 MessageFormatter_object *mfo = &mf; local
121 msgformat_data_init(&mfo->mf_data TSRMLS_CC);
124 intl_convert_utf8_to_utf16(&spattern, &spattern_len, pattern, pattern_len, &INTL_DATA_ERROR_CODE(mfo));
125 if( U_FAILURE(INTL_DATA_ERROR_CODE((mfo))) )
[all...]
H A Dmsgformat_helpers.cpp86 static HashTable *umsg_get_numeric_types(MessageFormatter_object *mfo, argument
96 if (mfo->mf_data.arg_types) {
98 return mfo->mf_data.arg_types;
102 *(MessageFormat*)mfo->mf_data.umsgf, parts_count);
126 mfo->mf_data.arg_types = ret;
132 static HashTable *umsg_parse_format(MessageFormatter_object *mfo, argument
143 if (!((MessageFormat *)mfo->mf_data.umsgf)->usesNamedArguments()) {
144 return umsg_get_numeric_types(mfo, err TSRMLS_CC);
147 if (mfo->mf_data.arg_types) {
149 return mfo
295 umsg_get_types(MessageFormatter_object *mfo, intl_error& err TSRMLS_DC) argument
315 umsg_set_timezone(MessageFormatter_object *mfo, intl_error& err TSRMLS_DC) argument
364 umsg_format_helper(MessageFormatter_object *mfo, HashTable *args, UChar **formatted, int *formatted_len TSRMLS_DC) argument
[all...]
H A Dmsgformat_parse.c31 static void msgfmt_do_parse(MessageFormatter_object *mfo, char *source, int src_len, zval *return_value TSRMLS_DC) argument
39 intl_convert_utf8_to_utf16(&usource, &usrc_len, source, src_len, &INTL_DATA_ERROR_CODE(mfo));
40 INTL_METHOD_CHECK_STATUS(mfo, "Converting parse string failed");
42 umsg_parse_helper(MSG_FORMAT_OBJECT(mfo), &count, &fargs, usource, usrc_len, &INTL_DATA_ERROR_CODE(mfo));
46 INTL_METHOD_CHECK_STATUS(mfo, "Parsing failed");
81 msgfmt_do_parse(mfo, source, source_len, return_value TSRMLS_CC);
101 MessageFormatter_object *mfo = &mf; local
113 msgformat_data_init(&mfo->mf_data TSRMLS_CC);
116 intl_convert_utf8_to_utf16(&spattern, &spattern_len, pattern, pattern_len, &INTL_DATA_ERROR_CODE(mfo));
[all...]

Completed in 3 milliseconds