Back to index

php5  5.3.10
php_mbregex.h
Go to the documentation of this file.
00001 /*
00002    +----------------------------------------------------------------------+
00003    | PHP Version 5                                                        |
00004    +----------------------------------------------------------------------+
00005    | Copyright (c) 1997-2012 The PHP Group                                |
00006    +----------------------------------------------------------------------+
00007    | This source file is subject to version 3.01 of the PHP license,      |
00008    | that is bundled with this package in the file LICENSE, and is        |
00009    | available through the world-wide-web at the following url:           |
00010    | http://www.php.net/license/3_01.txt                                  |
00011    | If you did not receive a copy of the PHP license and are unable to   |
00012    | obtain it through the world-wide-web, please send a note to          |
00013    | license@php.net so we can mail you a copy immediately.               |
00014    +----------------------------------------------------------------------+
00015    | Author: Moriyoshi Koizumi <moriyoshi@php.net>                        |
00016    +----------------------------------------------------------------------+
00017  */
00018 
00019 /* $Id: php_mbregex.h 321634 2012-01-01 13:15:04Z felipe $ */
00020  
00021 #ifndef _PHP_MBREGEX_H
00022 #define _PHP_MBREGEX_H
00023 
00024 #if HAVE_MBREGEX
00025 
00026 #include "php.h"
00027 #include "zend.h"
00028 
00029 /* {{{ PHP_MBREGEX_FUNCTION_ENTRIES */
00030 #define PHP_MBREGEX_FUNCTION_ENTRIES \
00031        PHP_FE(mb_regex_encoding,   arginfo_mb_regex_encoding) \
00032        PHP_FE(mb_regex_set_options,       arginfo_mb_regex_set_options) \
00033        PHP_FE(mb_ereg,                    arginfo_mb_ereg) \
00034        PHP_FE(mb_eregi,                   arginfo_mb_eregi) \
00035        PHP_FE(mb_ereg_replace,                   arginfo_mb_ereg_replace) \
00036        PHP_FE(mb_eregi_replace,                  arginfo_mb_eregi_replace) \
00037        PHP_FE(mb_split,                                 arginfo_mb_split) \
00038        PHP_FE(mb_ereg_match,                     arginfo_mb_ereg_match) \
00039        PHP_FE(mb_ereg_search,                    arginfo_mb_ereg_search) \
00040        PHP_FE(mb_ereg_search_pos,         arginfo_mb_ereg_search_pos) \
00041        PHP_FE(mb_ereg_search_regs,        arginfo_mb_ereg_search_regs) \
00042        PHP_FE(mb_ereg_search_init,        arginfo_mb_ereg_search_init) \
00043        PHP_FE(mb_ereg_search_getregs,     arginfo_mb_ereg_search_getregs) \
00044        PHP_FE(mb_ereg_search_getpos,      arginfo_mb_ereg_search_getpos) \
00045        PHP_FE(mb_ereg_search_setpos,      arginfo_mb_ereg_search_setpos) \
00046        PHP_FALIAS(mbregex_encoding,       mb_regex_encoding,   arginfo_mb_regex_encoding) \
00047        PHP_FALIAS(mbereg,   mb_ereg,      arginfo_mb_ereg) \
00048        PHP_FALIAS(mberegi,  mb_eregi,     arginfo_mb_eregi) \
00049        PHP_FALIAS(mbereg_replace,  mb_ereg_replace,     arginfo_mb_ereg_replace) \
00050        PHP_FALIAS(mberegi_replace, mb_eregi_replace,    arginfo_mb_eregi_replace) \
00051        PHP_FALIAS(mbsplit,  mb_split,     arginfo_mb_split) \
00052        PHP_FALIAS(mbereg_match,    mb_ereg_match,       arginfo_mb_ereg_match) \
00053        PHP_FALIAS(mbereg_search,   mb_ereg_search,      arginfo_mb_ereg_search) \
00054        PHP_FALIAS(mbereg_search_pos,      mb_ereg_search_pos,  arginfo_mb_ereg_search_pos) \
00055        PHP_FALIAS(mbereg_search_regs,     mb_ereg_search_regs, arginfo_mb_ereg_search_regs) \
00056        PHP_FALIAS(mbereg_search_init,     mb_ereg_search_init, arginfo_mb_ereg_search_init) \
00057        PHP_FALIAS(mbereg_search_getregs,  mb_ereg_search_getregs,     arginfo_mb_ereg_search_getregs) \
00058        PHP_FALIAS(mbereg_search_getpos,   mb_ereg_search_getpos,      arginfo_mb_ereg_search_getpos) \
00059        PHP_FALIAS(mbereg_search_setpos,   mb_ereg_search_setpos,      arginfo_mb_ereg_search_setpos)
00060 /* }}} */
00061 
00062 #define PHP_MBREGEX_MAXCACHE 50
00063 
00064 PHP_MINIT_FUNCTION(mb_regex);
00065 PHP_MSHUTDOWN_FUNCTION(mb_regex);
00066 PHP_RINIT_FUNCTION(mb_regex);
00067 PHP_RSHUTDOWN_FUNCTION(mb_regex);
00068 PHP_MINFO_FUNCTION(mb_regex);
00069 
00070 typedef struct _zend_mb_regex_globals zend_mb_regex_globals;
00071 
00072 zend_mb_regex_globals *php_mb_regex_globals_alloc(TSRMLS_D);
00073 void php_mb_regex_globals_free(zend_mb_regex_globals *pglobals TSRMLS_DC);
00074 int php_mb_regex_set_mbctype(const char *enc TSRMLS_DC);
00075 int php_mb_regex_set_default_mbctype(const char *encname TSRMLS_DC);
00076 const char *php_mb_regex_get_mbctype(TSRMLS_D);
00077 const char *php_mb_regex_get_default_mbctype(TSRMLS_D);
00078 
00079 PHP_FUNCTION(mb_regex_encoding);
00080 PHP_FUNCTION(mb_ereg);
00081 PHP_FUNCTION(mb_eregi);
00082 PHP_FUNCTION(mb_ereg_replace);
00083 PHP_FUNCTION(mb_eregi_replace);
00084 PHP_FUNCTION(mb_split);
00085 PHP_FUNCTION(mb_ereg_match);
00086 PHP_FUNCTION(mb_ereg_search);
00087 PHP_FUNCTION(mb_ereg_search_pos);
00088 PHP_FUNCTION(mb_ereg_search_regs);
00089 PHP_FUNCTION(mb_ereg_search_init);
00090 PHP_FUNCTION(mb_ereg_search_getregs);
00091 PHP_FUNCTION(mb_ereg_search_getpos);
00092 PHP_FUNCTION(mb_ereg_search_setpos);
00093 PHP_FUNCTION(mb_regex_set_options);
00094 
00095 #endif /* HAVE_MBREGEX */
00096 
00097 #endif /* _PHP_MBREGEX_H */
00098 
00099 /*
00100  * Local variables:
00101  * tab-width: 4
00102  * c-basic-offset: 4
00103  * End:
00104  * vim600: noet sw=4 ts=4 fdm=marker
00105  * vim<600: noet sw=4 ts=4
00106  */
00107