@mbfilter is changed to bundled version of libmbfl to prevent LGPL licence problem. mbregex is changed to oniguruma.

This commit is contained in:
Rui Hirokawa 2003-08-23 06:18:44 +00:00
parent d696f1267a
commit 5a80df26f3
235 changed files with 45638 additions and 24075 deletions

View file

@ -25,19 +25,20 @@
#include "php.h"
#include "zend.h"
#include "mbregex.h"
#include "oniguruma/oniguruma.h"
/* {{{ PHP_MBREGEX_GLOBALS */
#define PHP_MBREGEX_GLOBALS \
int default_mbctype; \
int current_mbctype; \
php_mb_reg_char_encoding default_mbctype; \
php_mb_reg_char_encoding current_mbctype; \
HashTable ht_rc; \
zval **search_str; \
zval *search_str; \
zval *search_str_val; \
unsigned int search_pos; \
mb_regex_t *search_re; \
struct mbre_registers *search_regs; \
int regex_default_options;
php_mb_regex_t *search_re; \
struct php_mb_re_registers *search_regs; \
int regex_default_options; \
php_mb_reg_syntax_type *regex_default_syntax;
/* }}} */
/* {{{ PHP_MBREGEX_FUNCTION_ENTRIES */
@ -77,16 +78,15 @@ typedef struct _zend_mbstring_globals * zend_mbstring_globals_ptr;
#define PHP_MBREGEX_MAXCACHE 50
int php_mb_regex_name2mbctype(const char *pname);
int php_mb_regex_set_options(int options TSRMLS_DC);
int php_mb_regex_set_options_by_string(const char *optstr, int len TSRMLS_DC);
PHP_MINIT_FUNCTION(mb_regex);
PHP_MSHUTDOWN_FUNCTION(mb_regex);
PHP_RINIT_FUNCTION(mb_regex);
PHP_RSHUTDOWN_FUNCTION(mb_regex);
void _php_mb_regex_globals_ctor(zend_mbstring_globals_ptr pglobals TSRMLS_DC);
void php_mb_regex_set_options(php_mb_reg_option_type options, php_mb_reg_syntax_type *syntax, php_mb_reg_option_type *prev_options, php_mb_reg_syntax_type **prev_syntax TSRMLS_DC);
void _php_mb_regex_globals_dtor(zend_mbstring_globals_ptr pglobals TSRMLS_DC);
php_mb_reg_char_encoding php_mb_regex_name2mbctype(const char *pname);
const char *php_mb_regex_mbctype2name(php_mb_reg_char_encoding mbctype);
PHP_FUNCTION(mb_regex_encoding);
PHP_FUNCTION(mb_ereg);