php_mbregex.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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: Moriyoshi Koizumi <moriyoshi@php.net> |
  14. +----------------------------------------------------------------------+
  15. */
  16. #ifndef _PHP_MBREGEX_H
  17. #define _PHP_MBREGEX_H
  18. #ifdef HAVE_MBREGEX
  19. #include "php.h"
  20. #include "zend.h"
  21. #define PHP_MBREGEX_MAXCACHE 50
  22. PHP_MINIT_FUNCTION(mb_regex);
  23. PHP_MSHUTDOWN_FUNCTION(mb_regex);
  24. PHP_RINIT_FUNCTION(mb_regex);
  25. PHP_RSHUTDOWN_FUNCTION(mb_regex);
  26. PHP_MINFO_FUNCTION(mb_regex);
  27. typedef struct _zend_mb_regex_globals zend_mb_regex_globals;
  28. zend_mb_regex_globals *php_mb_regex_globals_alloc(void);
  29. void php_mb_regex_globals_free(zend_mb_regex_globals *pglobals);
  30. int php_mb_regex_set_mbctype(const char *enc);
  31. int php_mb_regex_set_default_mbctype(const char *encname);
  32. const char *php_mb_regex_get_mbctype(void);
  33. const char *php_mb_regex_get_default_mbctype(void);
  34. #endif /* HAVE_MBREGEX */
  35. #endif /* _PHP_MBREGEX_H */