1 /* 2 +----------------------------------------------------------------------+ 3 | PHP Version 7 | 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 2001-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: Rui Hirokawa <hirokawa@php.net> | 16 | Moriyoshi Koizumi <moriyoshi@php.net> | 17 +----------------------------------------------------------------------+ 18 */ 19 20 /* $Id$ */ 21 22 /* {{{ includes */ 23 #ifdef HAVE_CONFIG_H 24 #include "config.h" 25 #endif 26 27 #include "php.h" 28 /* }}} */ 29 30 #if HAVE_MBSTRING 31 /* {{{ typedefs */ 32 typedef struct _php_mb_encoding_handler_info_t { 33 const char *separator; 34 const mbfl_encoding *to_encoding; 35 const mbfl_encoding **from_encodings; 36 size_t num_from_encodings; 37 int data_type; 38 unsigned int report_errors : 1; 39 enum mbfl_no_language to_language; 40 enum mbfl_no_language from_language; 41 } php_mb_encoding_handler_info_t; 42 43 /* }}}*/ 44 45 /* {{{ prototypes */ 46 SAPI_POST_HANDLER_FUNC(php_mb_post_handler); 47 MBSTRING_API SAPI_TREAT_DATA_FUNC(mbstr_treat_data); 48 49 int _php_mb_enable_encoding_translation(int flag); 50 const mbfl_encoding *_php_mb_encoding_handler_ex(const php_mb_encoding_handler_info_t *info, zval *arg, char *res); 51 /* }}} */ 52 #endif /* HAVE_MBSTRING */ 53 54 /* 55 * Local variables: 56 * tab-width: 4 57 * c-basic-offset: 4 58 * End: 59 * vim600: fdm=marker 60 * vim: noet sw=4 ts=4 61 */ 62