1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: d595f5c582996ebb96ab39df8cb56c4cf6c8dfcf */
3 
4 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MessageFormatter___construct, 0, 0, 2)
5 	ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0)
6 	ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
7 ZEND_END_ARG_INFO()
8 
9 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_MessageFormatter_create, 0, 2, MessageFormatter, 1)
10 	ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0)
11 	ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
12 ZEND_END_ARG_INFO()
13 
14 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_MessageFormatter_format, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
15 	ZEND_ARG_TYPE_INFO(0, values, IS_ARRAY, 0)
16 ZEND_END_ARG_INFO()
17 
18 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_MessageFormatter_formatMessage, 0, 3, MAY_BE_STRING|MAY_BE_FALSE)
19 	ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0)
20 	ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
21 	ZEND_ARG_TYPE_INFO(0, values, IS_ARRAY, 0)
22 ZEND_END_ARG_INFO()
23 
24 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_MessageFormatter_parse, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
25 	ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
26 ZEND_END_ARG_INFO()
27 
28 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_MessageFormatter_parseMessage, 0, 3, MAY_BE_ARRAY|MAY_BE_FALSE)
29 	ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0)
30 	ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
31 	ZEND_ARG_TYPE_INFO(0, message, IS_STRING, 0)
32 ZEND_END_ARG_INFO()
33 
34 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_MessageFormatter_setPattern, 0, 1, _IS_BOOL, 0)
35 	ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
36 ZEND_END_ARG_INFO()
37 
38 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_MessageFormatter_getPattern, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
39 ZEND_END_ARG_INFO()
40 
41 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_MessageFormatter_getLocale, 0, 0, IS_STRING, 0)
42 ZEND_END_ARG_INFO()
43 
44 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_MessageFormatter_getErrorCode, 0, 0, IS_LONG, 0)
45 ZEND_END_ARG_INFO()
46 
47 #define arginfo_class_MessageFormatter_getErrorMessage arginfo_class_MessageFormatter_getLocale
48 
49 
50 ZEND_METHOD(MessageFormatter, __construct);
51 ZEND_FUNCTION(msgfmt_create);
52 ZEND_FUNCTION(msgfmt_format);
53 ZEND_FUNCTION(msgfmt_format_message);
54 ZEND_FUNCTION(msgfmt_parse);
55 ZEND_FUNCTION(msgfmt_parse_message);
56 ZEND_FUNCTION(msgfmt_set_pattern);
57 ZEND_FUNCTION(msgfmt_get_pattern);
58 ZEND_FUNCTION(msgfmt_get_locale);
59 ZEND_FUNCTION(msgfmt_get_error_code);
60 ZEND_FUNCTION(msgfmt_get_error_message);
61 
62 
63 static const zend_function_entry class_MessageFormatter_methods[] = {
64 	ZEND_ME(MessageFormatter, __construct, arginfo_class_MessageFormatter___construct, ZEND_ACC_PUBLIC)
65 	ZEND_ME_MAPPING(create, msgfmt_create, arginfo_class_MessageFormatter_create, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
66 	ZEND_ME_MAPPING(format, msgfmt_format, arginfo_class_MessageFormatter_format, ZEND_ACC_PUBLIC)
67 	ZEND_ME_MAPPING(formatMessage, msgfmt_format_message, arginfo_class_MessageFormatter_formatMessage, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
68 	ZEND_ME_MAPPING(parse, msgfmt_parse, arginfo_class_MessageFormatter_parse, ZEND_ACC_PUBLIC)
69 	ZEND_ME_MAPPING(parseMessage, msgfmt_parse_message, arginfo_class_MessageFormatter_parseMessage, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
70 	ZEND_ME_MAPPING(setPattern, msgfmt_set_pattern, arginfo_class_MessageFormatter_setPattern, ZEND_ACC_PUBLIC)
71 	ZEND_ME_MAPPING(getPattern, msgfmt_get_pattern, arginfo_class_MessageFormatter_getPattern, ZEND_ACC_PUBLIC)
72 	ZEND_ME_MAPPING(getLocale, msgfmt_get_locale, arginfo_class_MessageFormatter_getLocale, ZEND_ACC_PUBLIC)
73 	ZEND_ME_MAPPING(getErrorCode, msgfmt_get_error_code, arginfo_class_MessageFormatter_getErrorCode, ZEND_ACC_PUBLIC)
74 	ZEND_ME_MAPPING(getErrorMessage, msgfmt_get_error_message, arginfo_class_MessageFormatter_getErrorMessage, ZEND_ACC_PUBLIC)
75 	ZEND_FE_END
76 };
77 
register_class_MessageFormatter(void)78 static zend_class_entry *register_class_MessageFormatter(void)
79 {
80 	zend_class_entry ce, *class_entry;
81 
82 	INIT_CLASS_ENTRY(ce, "MessageFormatter", class_MessageFormatter_methods);
83 	class_entry = zend_register_internal_class_ex(&ce, NULL);
84 	class_entry->ce_flags |= ZEND_ACC_NOT_SERIALIZABLE;
85 
86 	return class_entry;
87 }
88