xref: /php-src/ext/mbstring/php_mbregex.h (revision 56137cd2)
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 
17 #ifndef _PHP_MBREGEX_H
18 #define _PHP_MBREGEX_H
19 
20 #ifdef HAVE_MBREGEX
21 
22 #include "php.h"
23 #include "zend.h"
24 
25 #define PHP_MBREGEX_MAXCACHE 50
26 
27 PHP_MINIT_FUNCTION(mb_regex);
28 PHP_MSHUTDOWN_FUNCTION(mb_regex);
29 PHP_RINIT_FUNCTION(mb_regex);
30 PHP_RSHUTDOWN_FUNCTION(mb_regex);
31 PHP_MINFO_FUNCTION(mb_regex);
32 
33 extern char php_mb_oniguruma_version[256];
34 
35 typedef struct _zend_mb_regex_globals zend_mb_regex_globals;
36 
37 zend_mb_regex_globals *php_mb_regex_globals_alloc(void);
38 void php_mb_regex_globals_free(zend_mb_regex_globals *pglobals);
39 int php_mb_regex_set_mbctype(const char *enc);
40 int php_mb_regex_set_default_mbctype(const char *encname);
41 const char *php_mb_regex_get_mbctype(void);
42 const char *php_mb_regex_get_default_mbctype(void);
43 
44 #endif /* HAVE_MBREGEX */
45 
46 #endif /* _PHP_MBREGEX_H */
47