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

/PHP_5_3/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_attr.c49 if(mfo->mf_data.orig_format) {
50 RETURN_STRINGL(mfo->mf_data.orig_format, mfo->mf_data.orig_format_len, 1);
82 intl_convert_utf8_to_utf16(&spattern, &spattern_len, value, value_len, &INTL_DATA_ERROR_CODE(mfo));
83 INTL_METHOD_CHECK_STATUS(mfo, "Error converting pattern to UTF-16" );
86 if(msgformat_fix_quotes(&spattern, &spattern_len, &INTL_DATA_ERROR_CODE(mfo)) != SUCCESS) {
94 umsg_applyPattern(MSG_FORMAT_OBJECT(mfo), spattern, spattern_len, NULL, &INTL_DATA_ERROR_CODE(mfo));
98 INTL_METHOD_CHECK_STATUS(mfo, "Error setting symbol value");
100 if(mfo
[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 );
83 MessageFormatter_object *mfo, *new_mfo; local
89 zend_objects_clone_members(&new_mfo->zo, new_obj_val, &mfo->zo, handle TSRMLS_CC);
92 if (MSG_FORMAT_OBJECT(mfo) != NULL) {
93 MSG_FORMAT_OBJECT(new_mfo) = umsg_clone(MSG_FORMAT_OBJECT(mfo),
94 &INTL_DATA_ERROR_CODE(mfo));
96 if (U_FAILURE(INTL_DATA_ERROR_CODE(mfo))) {
[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
H A Dmsgformat_format.c35 static void msgfmt_do_format(MessageFormatter_object *mfo, zval *args, zval *return_value TSRMLS_DC) argument
46 if(count < umsg_format_arg_count(MSG_FORMAT_OBJECT(mfo))) {
48 intl_error_set( INTL_DATA_ERROR_P(mfo), U_ILLEGAL_ARGUMENT_ERROR,
66 umsg_format_helper(MSG_FORMAT_OBJECT(mfo), count, fargs, &formatted, &formatted_len, &INTL_DATA_ERROR_CODE(mfo) TSRMLS_CC);
74 if (formatted && U_FAILURE( INTL_DATA_ERROR_CODE(mfo) ) ) {
78 INTL_METHOD_CHECK_STATUS( mfo, "Number formatting failed" );
79 INTL_METHOD_RETVAL_UTF8( mfo, formatted, formatted_len, 1 );
107 msgfmt_do_format(mfo, args, return_value TSRMLS_CC);
126 MessageFormatter_object *mfo local
[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 5 milliseconds