mb_gpc.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. /* {{{ includes */
  20. #ifdef HAVE_CONFIG_H
  21. #include "config.h"
  22. #endif
  23. #include "php.h"
  24. /* }}} */
  25. #if HAVE_MBSTRING
  26. /* {{{ typedefs */
  27. typedef struct _php_mb_encoding_handler_info_t {
  28. const char *separator;
  29. const mbfl_encoding *to_encoding;
  30. const mbfl_encoding **from_encodings;
  31. size_t num_from_encodings;
  32. int data_type;
  33. unsigned int report_errors : 1;
  34. enum mbfl_no_language to_language;
  35. enum mbfl_no_language from_language;
  36. } php_mb_encoding_handler_info_t;
  37. /* }}}*/
  38. /* {{{ prototypes */
  39. SAPI_POST_HANDLER_FUNC(php_mb_post_handler);
  40. MBSTRING_API SAPI_TREAT_DATA_FUNC(mbstr_treat_data);
  41. int _php_mb_enable_encoding_translation(int flag);
  42. const mbfl_encoding *_php_mb_encoding_handler_ex(const php_mb_encoding_handler_info_t *info, zval *arg, char *res);
  43. /* }}} */
  44. #endif /* HAVE_MBSTRING */
  45. /*
  46. * Local variables:
  47. * tab-width: 4
  48. * c-basic-offset: 4
  49. * End:
  50. * vim600: fdm=marker
  51. * vim: noet sw=4 ts=4
  52. */