diff options
| author | Andrei Zmievski <andrei@php.net> | 2006-08-28 20:36:50 +0000 |
|---|---|---|
| committer | Andrei Zmievski <andrei@php.net> | 2006-08-28 20:36:50 +0000 |
| commit | ff93bd421b9afd9674137a79da5e98283d51154d (patch) | |
| tree | 1d4a717b7e448ff11e187fc8617c378c328488e8 /ext/pcre/php_pcre.h | |
| parent | 8149e6251edc17a72ae7b500f71b89926052d3a4 (diff) | |
| download | php-git-ff93bd421b9afd9674137a79da5e98283d51154d.tar.gz | |
Add Unicode support for preg_match[_all]
Diffstat (limited to 'ext/pcre/php_pcre.h')
| -rw-r--r-- | ext/pcre/php_pcre.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/pcre/php_pcre.h b/ext/pcre/php_pcre.h index 859d3a8126..466c29d0b1 100644 --- a/ext/pcre/php_pcre.h +++ b/ext/pcre/php_pcre.h @@ -58,12 +58,13 @@ typedef struct { #endif int compile_options; int refcount; + zend_bool from_unicode; } pcre_cache_entry; -PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(char *regex, int regex_len TSRMLS_DC); +PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(char *regex, int regex_len, zend_bool regex_is_utf8 TSRMLS_DC); PHPAPI void php_pcre_match_impl( pcre_cache_entry *pce, char *subject, int subject_len, zval *return_value, - zval *subpats, int global, int use_flags, long flags, long start_offset TSRMLS_DC); + zval *subpats, int global, int use_flags, long flags, long start_offset, zend_bool is_utf8 TSRMLS_DC); PHPAPI char *php_pcre_replace_impl(pcre_cache_entry *pce, char *subject, int subject_len, zval *return_value, int is_callable_replace, int *result_len, int limit, int *replace_count TSRMLS_DC); |
