xref: /PHP-8.3/ext/mbstring/mb_gpc.h (revision 8df51555)
1 /*
2    +----------------------------------------------------------------------+
3    | Copyright (c) The PHP Group                                          |
4    +----------------------------------------------------------------------+
5    | This source file is subject to version 3.01 of the PHP license,      |
6    | that is bundled with this package in the file LICENSE, and is        |
7    | available through the world-wide-web at the following url:           |
8    | https://www.php.net/license/3_01.txt                                 |
9    | If you did not receive a copy of the PHP license and are unable to   |
10    | obtain it through the world-wide-web, please send a note to          |
11    | license@php.net so we can mail you a copy immediately.               |
12    +----------------------------------------------------------------------+
13    | Author: Rui Hirokawa <hirokawa@php.net>                              |
14    |         Moriyoshi Koizumi <moriyoshi@php.net>                        |
15    +----------------------------------------------------------------------+
16  */
17 
18 /* {{{ includes */
19 #include "php.h"
20 /* }}} */
21 
22 /* {{{ typedefs */
23 typedef struct _php_mb_encoding_handler_info_t {
24 	const char *separator;
25 	const mbfl_encoding *to_encoding;
26 	const mbfl_encoding **from_encodings;
27 	size_t num_from_encodings;
28 	int data_type;
29 	bool report_errors;
30 } php_mb_encoding_handler_info_t;
31 
32 /* }}}*/
33 
34 /* {{{ prototypes */
35 SAPI_POST_HANDLER_FUNC(php_mb_post_handler);
36 MBSTRING_API SAPI_TREAT_DATA_FUNC(mbstr_treat_data);
37 
38 int _php_mb_enable_encoding_translation(int flag);
39 const mbfl_encoding *_php_mb_encoding_handler_ex(const php_mb_encoding_handler_info_t *info, zval *arg, char *res);
40 /* }}} */
41