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

/PHP_TRUNK/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);
77 (mfo)->mf_data.orig_format = estrndup(pattern, pattern_len);
78 (mfo)->mf_data.orig_format_len = pattern_len;
81 MSG_FORMAT_OBJECT(mfo)
132 MessageFormatter_object* mfo = NULL; local
160 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);
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 = php_intl_messageformatter_fetch_object(object); local
48 zend_object_std_dtor( &mfo->zo );
50 msgformat_data_free( &mfo->mf_data );
73 MessageFormatter_object *mfo, *new_mfo; local
80 zend_objects_clone_members(&new_mfo->zo, &mfo->zo);
83 if (MSG_FORMAT_OBJECT(mfo) != NULL) {
84 MSG_FORMAT_OBJECT(new_mfo) = umsg_clone(MSG_FORMAT_OBJECT(mfo),
85 &INTL_DATA_ERROR_CODE(mfo));
87 if (U_FAILURE(INTL_DATA_ERROR_CODE(mfo))) {
88 intl_errors_set(INTL_DATA_ERROR_P(mfo), INTL_DATA_ERROR_COD
[all...]
H A Dmsgformat_class.h45 #define MSG_FORMAT_METHOD_INIT_VARS INTL_METHOD_INIT_VARS(MessageFormatter, mfo)
46 #define MSG_FORMAT_METHOD_FETCH_OBJECT_NO_CHECK INTL_METHOD_FETCH_OBJECT(INTL_MESSAGEFORMATTER, mfo)
49 if (MSG_FORMAT_OBJECT(mfo) == NULL) { \
50 intl_errors_set(&mfo->mf_data.error, U_ILLEGAL_ARGUMENT_ERROR, \
55 #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) argument
48 umsg_format_helper(mfo, args_copy, &formatted, &formatted_len);
53 if (formatted && U_FAILURE(INTL_DATA_ERROR_CODE(mfo))) {
57 if (U_FAILURE(INTL_DATA_ERROR_CODE(mfo))) {
60 INTL_METHOD_RETVAL_UTF8(mfo, formatted, formatted_len, 1);
89 msgfmt_do_format(mfo, args, return_value);
108 MessageFormatter_object *mfo = &mf; local
120 msgformat_data_init(&mfo->mf_data);
123 intl_convert_utf8_to_utf16(&spattern, &spattern_len, pattern, pattern_len, &INTL_DATA_ERROR_CODE(mfo));
124 if( U_FAILURE(INTL_DATA_ERROR_CODE((mfo))) )
[all...]
H A Dmsgformat_helpers.cpp90 static HashTable *umsg_get_numeric_types(MessageFormatter_object *mfo, argument
100 if (mfo->mf_data.arg_types) {
102 return mfo->mf_data.arg_types;
106 *(MessageFormat*)mfo->mf_data.umsgf, parts_count);
129 mfo->mf_data.arg_types = ret;
135 static HashTable *umsg_parse_format(MessageFormatter_object *mfo, argument
146 if (!((MessageFormat *)mfo->mf_data.umsgf)->usesNamedArguments()) {
147 return umsg_get_numeric_types(mfo, err);
150 if (mfo->mf_data.arg_types) {
152 return mfo
295 umsg_get_types(MessageFormatter_object *mfo, intl_error& err) argument
315 umsg_set_timezone(MessageFormatter_object *mfo, intl_error& err) argument
363 umsg_format_helper(MessageFormatter_object *mfo, HashTable *args, UChar **formatted, int *formatted_len) argument
[all...]
H A Dmsgformat_helpers.h21 void umsg_format_helper(MessageFormatter_object *mfo, HashTable *args,
H A Dmsgformat_parse.c31 static void msgfmt_do_parse(MessageFormatter_object *mfo, char *source, size_t src_len, zval *return_value) 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);
101 MessageFormatter_object *mfo = &mf; local
113 msgformat_data_init(&mfo->mf_data);
116 intl_convert_utf8_to_utf16(&spattern, &spattern_len, pattern, pattern_len, &INTL_DATA_ERROR_CODE(mfo));
[all...]

Completed in 13 milliseconds