xref: /PHP-8.3/ext/gettext/gettext_arginfo.h (revision 50f31829)
1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: 864b3389d4f99b0d7302ae399544e6fb9fb80b7e */
3 
4 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_textdomain, 0, 1, IS_STRING, 0)
5 	ZEND_ARG_TYPE_INFO(0, domain, IS_STRING, 1)
6 ZEND_END_ARG_INFO()
7 
8 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gettext, 0, 1, IS_STRING, 0)
9 	ZEND_ARG_TYPE_INFO(0, message, IS_STRING, 0)
10 ZEND_END_ARG_INFO()
11 
12 #define arginfo__ arginfo_gettext
13 
14 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_dgettext, 0, 2, IS_STRING, 0)
15 	ZEND_ARG_TYPE_INFO(0, domain, IS_STRING, 0)
16 	ZEND_ARG_TYPE_INFO(0, message, IS_STRING, 0)
17 ZEND_END_ARG_INFO()
18 
19 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_dcgettext, 0, 3, IS_STRING, 0)
20 	ZEND_ARG_TYPE_INFO(0, domain, IS_STRING, 0)
21 	ZEND_ARG_TYPE_INFO(0, message, IS_STRING, 0)
22 	ZEND_ARG_TYPE_INFO(0, category, IS_LONG, 0)
23 ZEND_END_ARG_INFO()
24 
25 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_bindtextdomain, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
26 	ZEND_ARG_TYPE_INFO(0, domain, IS_STRING, 0)
27 	ZEND_ARG_TYPE_INFO(0, directory, IS_STRING, 1)
28 ZEND_END_ARG_INFO()
29 
30 #if defined(HAVE_NGETTEXT)
31 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ngettext, 0, 3, IS_STRING, 0)
32 	ZEND_ARG_TYPE_INFO(0, singular, IS_STRING, 0)
33 	ZEND_ARG_TYPE_INFO(0, plural, IS_STRING, 0)
34 	ZEND_ARG_TYPE_INFO(0, count, IS_LONG, 0)
35 ZEND_END_ARG_INFO()
36 #endif
37 
38 #if defined(HAVE_DNGETTEXT)
39 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_dngettext, 0, 4, IS_STRING, 0)
40 	ZEND_ARG_TYPE_INFO(0, domain, IS_STRING, 0)
41 	ZEND_ARG_TYPE_INFO(0, singular, IS_STRING, 0)
42 	ZEND_ARG_TYPE_INFO(0, plural, IS_STRING, 0)
43 	ZEND_ARG_TYPE_INFO(0, count, IS_LONG, 0)
44 ZEND_END_ARG_INFO()
45 #endif
46 
47 #if defined(HAVE_DCNGETTEXT)
48 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_dcngettext, 0, 5, IS_STRING, 0)
49 	ZEND_ARG_TYPE_INFO(0, domain, IS_STRING, 0)
50 	ZEND_ARG_TYPE_INFO(0, singular, IS_STRING, 0)
51 	ZEND_ARG_TYPE_INFO(0, plural, IS_STRING, 0)
52 	ZEND_ARG_TYPE_INFO(0, count, IS_LONG, 0)
53 	ZEND_ARG_TYPE_INFO(0, category, IS_LONG, 0)
54 ZEND_END_ARG_INFO()
55 #endif
56 
57 #if defined(HAVE_BIND_TEXTDOMAIN_CODESET)
58 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_bind_textdomain_codeset, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
59 	ZEND_ARG_TYPE_INFO(0, domain, IS_STRING, 0)
60 	ZEND_ARG_TYPE_INFO(0, codeset, IS_STRING, 1)
61 ZEND_END_ARG_INFO()
62 #endif
63 
64 
65 ZEND_FUNCTION(textdomain);
66 ZEND_FUNCTION(gettext);
67 ZEND_FUNCTION(dgettext);
68 ZEND_FUNCTION(dcgettext);
69 ZEND_FUNCTION(bindtextdomain);
70 #if defined(HAVE_NGETTEXT)
71 ZEND_FUNCTION(ngettext);
72 #endif
73 #if defined(HAVE_DNGETTEXT)
74 ZEND_FUNCTION(dngettext);
75 #endif
76 #if defined(HAVE_DCNGETTEXT)
77 ZEND_FUNCTION(dcngettext);
78 #endif
79 #if defined(HAVE_BIND_TEXTDOMAIN_CODESET)
80 ZEND_FUNCTION(bind_textdomain_codeset);
81 #endif
82 
83 
84 static const zend_function_entry ext_functions[] = {
85 	ZEND_FE(textdomain, arginfo_textdomain)
86 	ZEND_FE(gettext, arginfo_gettext)
87 	ZEND_FALIAS(_, gettext, arginfo__)
88 	ZEND_FE(dgettext, arginfo_dgettext)
89 	ZEND_FE(dcgettext, arginfo_dcgettext)
90 	ZEND_FE(bindtextdomain, arginfo_bindtextdomain)
91 #if defined(HAVE_NGETTEXT)
92 	ZEND_FE(ngettext, arginfo_ngettext)
93 #endif
94 #if defined(HAVE_DNGETTEXT)
95 	ZEND_FE(dngettext, arginfo_dngettext)
96 #endif
97 #if defined(HAVE_DCNGETTEXT)
98 	ZEND_FE(dcngettext, arginfo_dcngettext)
99 #endif
100 #if defined(HAVE_BIND_TEXTDOMAIN_CODESET)
101 	ZEND_FE(bind_textdomain_codeset, arginfo_bind_textdomain_codeset)
102 #endif
103 	ZEND_FE_END
104 };
105