mb_gpc.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. /* {{{ includes */
  18. #include "php.h"
  19. /* }}} */
  20. /* {{{ typedefs */
  21. typedef struct _php_mb_encoding_handler_info_t {
  22. const char *separator;
  23. const mbfl_encoding *to_encoding;
  24. const mbfl_encoding **from_encodings;
  25. size_t num_from_encodings;
  26. int data_type;
  27. unsigned int report_errors : 1;
  28. enum mbfl_no_language to_language;
  29. enum mbfl_no_language from_language;
  30. } php_mb_encoding_handler_info_t;
  31. /* }}}*/
  32. /* {{{ prototypes */
  33. SAPI_POST_HANDLER_FUNC(php_mb_post_handler);
  34. MBSTRING_API SAPI_TREAT_DATA_FUNC(mbstr_treat_data);
  35. int _php_mb_enable_encoding_translation(int flag);
  36. const mbfl_encoding *_php_mb_encoding_handler_ex(const php_mb_encoding_handler_info_t *info, zval *arg, char *res);
  37. /* }}} */