diff options
| author | Rui Hirokawa <hirokawa@php.net> | 2002-01-11 13:21:09 +0000 |
|---|---|---|
| committer | Rui Hirokawa <hirokawa@php.net> | 2002-01-11 13:21:09 +0000 |
| commit | c79f749ff8fb324de6cec5d8018e4a1e3cf8ac21 (patch) | |
| tree | 8eb80c20a232c06250b0053b288a442f0e889759 /ext/mbstring/mbstring.h | |
| parent | 1e2b854bbacf1f6174e3b3a55b8aa4b9810e8eb1 (diff) | |
| download | php-git-c79f749ff8fb324de6cec5d8018e4a1e3cf8ac21.tar.gz | |
@Added multi-byte enabled regex functions. (Rui)
Diffstat (limited to 'ext/mbstring/mbstring.h')
| -rw-r--r-- | ext/mbstring/mbstring.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/ext/mbstring/mbstring.h b/ext/mbstring/mbstring.h index 6a0000048c..23d6ae14c3 100644 --- a/ext/mbstring/mbstring.h +++ b/ext/mbstring/mbstring.h @@ -55,6 +55,10 @@ #include "mbfilter.h" +#if HAVE_MBREGEX +#include "mbregex.h" +#endif + extern zend_module_entry mbstring_module_entry; #define mbstring_module_ptr &mbstring_module_entry @@ -91,6 +95,27 @@ PHP_FUNCTION(mb_encode_numericentity); PHP_FUNCTION(mb_decode_numericentity); PHP_FUNCTION(mb_send_mail); PHP_FUNCTION(mb_get_info); +#if HAVE_MBREGEX +PHP_FUNCTION(mb_regex_encoding); +PHP_FUNCTION(mb_ereg); +PHP_FUNCTION(mb_eregi); +PHP_FUNCTION(mb_ereg_replace); +PHP_FUNCTION(mb_eregi_replace); +PHP_FUNCTION(mb_split); +PHP_FUNCTION(mb_ereg_match); +PHP_FUNCTION(mb_ereg_search); +PHP_FUNCTION(mb_ereg_search_pos); +PHP_FUNCTION(mb_ereg_search_regs); +PHP_FUNCTION(mb_ereg_search_init); +PHP_FUNCTION(mb_ereg_search_getregs); +PHP_FUNCTION(mb_ereg_search_getpos); +PHP_FUNCTION(mb_ereg_search_setpos); +#endif + +#if HAVE_MBREGEX +#define PHP_MBREGEX_MAXCACHE 50 +int php_mbregex_name2mbctype(const char *pname); +#endif ZEND_BEGIN_MODULE_GLOBALS(mbstring) int language; @@ -116,10 +141,21 @@ ZEND_BEGIN_MODULE_GLOBALS(mbstring) int current_filter_illegal_substchar; int func_overload; mbfl_buffer_converter *outconv; +#if HAVE_MBREGEX + int default_mbctype; + int current_mbctype; + HashTable ht_rc; + zval **search_str; + zval *search_str_val; + unsigned int search_pos; + mb_regex_t *search_re; + struct mbre_registers *search_regs; +#endif ZEND_END_MODULE_GLOBALS(mbstring); #define MB_OVERLOAD_MAIL 1 #define MB_OVERLOAD_STRING 2 +#define MB_OVERLOAD_REGEX 4 struct mb_overload_def { int type; |
