mb_gpc.h 2.1 KB

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