xref: /PHP-7.3/ext/gettext/php_gettext.h (revision 8d3f8ca1)
1 /*
2    +----------------------------------------------------------------------+
3    | PHP Version 7                                                        |
4    +----------------------------------------------------------------------+
5    | Copyright (c) 1997-2018 The PHP Group                                |
6    +----------------------------------------------------------------------+
7    | This source file is subject to version 3.01 of the PHP license,      |
8    | that is bundled with this package in the file LICENSE, and is        |
9    | available through the world-wide-web at the following url:           |
10    | http://www.php.net/license/3_01.txt                                  |
11    | If you did not receive a copy of the PHP license and are unable to   |
12    | obtain it through the world-wide-web, please send a note to          |
13    | license@php.net so we can mail you a copy immediately.               |
14    +----------------------------------------------------------------------+
15    | Author: Alex Plotnick <alex@wgate.com>                               |
16    +----------------------------------------------------------------------+
17 */
18 
19 #ifndef PHP_GETTEXT_H
20 #define PHP_GETTEXT_H
21 
22 #if HAVE_LIBINTL
23 
24 extern zend_module_entry php_gettext_module_entry;
25 #define gettext_module_ptr &php_gettext_module_entry
26 
27 #include "php_version.h"
28 #define PHP_GETTEXT_VERSION PHP_VERSION
29 
30 PHP_MINFO_FUNCTION(php_gettext);
31 
32 PHP_NAMED_FUNCTION(zif_textdomain);
33 PHP_NAMED_FUNCTION(zif_gettext);
34 PHP_NAMED_FUNCTION(zif_dgettext);
35 PHP_NAMED_FUNCTION(zif_dcgettext);
36 PHP_NAMED_FUNCTION(zif_bindtextdomain);
37 #if HAVE_NGETTEXT
38 PHP_NAMED_FUNCTION(zif_ngettext);
39 #endif
40 #if HAVE_DNGETTEXT
41 PHP_NAMED_FUNCTION(zif_dngettext);
42 #endif
43 #if HAVE_DCNGETTEXT
44 PHP_NAMED_FUNCTION(zif_dcngettext);
45 #endif
46 #if HAVE_BIND_TEXTDOMAIN_CODESET
47 PHP_NAMED_FUNCTION(zif_bind_textdomain_codeset);
48 #endif
49 
50 #else
51 #define gettext_module_ptr NULL
52 #endif /* HAVE_LIBINTL */
53 
54 #define phpext_gettext_ptr gettext_module_ptr
55 
56 #endif /* PHP_GETTEXT_H */
57