xref: /PHP-7.4/ext/mbstring/mb_gpc.h (revision c245898b)
1 /*
2    +----------------------------------------------------------------------+
3    | PHP Version 7                                                        |
4    +----------------------------------------------------------------------+
5    | Copyright (c) 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: Rui Hirokawa <hirokawa@php.net>                              |
16    |         Moriyoshi Koizumi <moriyoshi@php.net>                        |
17    +----------------------------------------------------------------------+
18  */
19 
20 /* {{{ includes */
21 #ifdef HAVE_CONFIG_H
22 #include "config.h"
23 #endif
24 
25 #include "php.h"
26 /* }}} */
27 
28 #if HAVE_MBSTRING
29 /* {{{ typedefs */
30 typedef struct _php_mb_encoding_handler_info_t {
31 	const char *separator;
32 	const mbfl_encoding *to_encoding;
33 	const mbfl_encoding **from_encodings;
34 	size_t num_from_encodings;
35 	int data_type;
36 	unsigned int report_errors : 1;
37 	enum mbfl_no_language to_language;
38 	enum mbfl_no_language from_language;
39 } php_mb_encoding_handler_info_t;
40 
41 /* }}}*/
42 
43 /* {{{ prototypes */
44 SAPI_POST_HANDLER_FUNC(php_mb_post_handler);
45 MBSTRING_API SAPI_TREAT_DATA_FUNC(mbstr_treat_data);
46 
47 int _php_mb_enable_encoding_translation(int flag);
48 const mbfl_encoding *_php_mb_encoding_handler_ex(const php_mb_encoding_handler_info_t *info, zval *arg, char *res);
49 /* }}} */
50 #endif /* HAVE_MBSTRING */
51