Lines Matching refs:MBREX
55 #define MBREX(g) (MBSTRG(mb_regex_globals)->g) macro
139 MBREX(current_mbctype) = MBREX(default_mbctype); in PHP_RSHUTDOWN_FUNCTION()
141 if (!Z_ISUNDEF(MBREX(search_str))) { in PHP_RSHUTDOWN_FUNCTION()
142 zval_ptr_dtor(&MBREX(search_str)); in PHP_RSHUTDOWN_FUNCTION()
143 ZVAL_UNDEF(&MBREX(search_str)); in PHP_RSHUTDOWN_FUNCTION()
145 MBREX(search_pos) = 0; in PHP_RSHUTDOWN_FUNCTION()
147 if (MBREX(search_regs) != NULL) { in PHP_RSHUTDOWN_FUNCTION()
148 onig_region_free(MBREX(search_regs), 1); in PHP_RSHUTDOWN_FUNCTION()
149 MBREX(search_regs) = (OnigRegion *)NULL; in PHP_RSHUTDOWN_FUNCTION()
151 zend_hash_clean(&MBREX(ht_rc)); in PHP_RSHUTDOWN_FUNCTION()
412 MBREX(current_mbctype) = mbctype; in php_mb_regex_set_mbctype()
424 MBREX(default_mbctype) = mbctype; in php_mb_regex_set_default_mbctype()
432 return _php_mb_regex_mbctype2name(MBREX(current_mbctype)); in php_mb_regex_get_mbctype()
439 return _php_mb_regex_mbctype2name(MBREX(default_mbctype)); in php_mb_regex_get_default_mbctype()
454 rc = zend_hash_str_find_ptr(&MBREX(ht_rc), (char *)pattern, patlen); in php_mbregex_compile_pattern()
462 if (rc == MBREX(search_re)) { in php_mbregex_compile_pattern()
464 MBREX(search_re) = NULL; in php_mbregex_compile_pattern()
466 zend_hash_str_update_ptr(&MBREX(ht_rc), (char *)pattern, patlen, retval); in php_mbregex_compile_pattern()
669 const char *retval = _php_mb_regex_mbctype2name(MBREX(current_mbctype)); in PHP_FUNCTION()
684 MBREX(current_mbctype) = mbctype; in PHP_FUNCTION()
706 options = MBREX(regex_default_options); in _php_mb_regex_ereg_exec()
727 …rn(Z_STRVAL_P(arg_pattern), Z_STRLEN_P(arg_pattern), options, MBREX(current_mbctype), MBREX(regex_… in _php_mb_regex_ereg_exec()
820 current_enc_name = _php_mb_regex_mbctype2name(MBREX(current_mbctype)); in _php_mb_regex_ereg_replace_exec()
853 options |= MBREX(regex_default_options); in _php_mb_regex_ereg_replace_exec()
854 syntax = MBREX(regex_default_syntax); in _php_mb_regex_ereg_replace_exec()
874 …re = php_mbregex_compile_pattern(arg_pattern, arg_pattern_len, options, MBREX(current_mbctype), sy… in _php_mb_regex_ereg_replace_exec()
1084 …_compile_pattern(arg_pattern, arg_pattern_len, MBREX(regex_default_options), MBREX(current_mbctype… in PHP_FUNCTION()
1167 option |= MBREX(regex_default_options); in PHP_FUNCTION()
1168 syntax = MBREX(regex_default_syntax); in PHP_FUNCTION()
1172 …if ((re = php_mbregex_compile_pattern(arg_pattern, arg_pattern_len, option, MBREX(current_mbctype)… in PHP_FUNCTION()
1202 option = MBREX(regex_default_options); in _php_mb_regex_ereg_search_exec()
1211 …if ((MBREX(search_re) = php_mbregex_compile_pattern(arg_pattern, arg_pattern_len, option, MBREX(cu… in _php_mb_regex_ereg_search_exec()
1216 pos = MBREX(search_pos); in _php_mb_regex_ereg_search_exec()
1219 if (!Z_ISUNDEF(MBREX(search_str)) && Z_TYPE(MBREX(search_str)) == IS_STRING){ in _php_mb_regex_ereg_search_exec()
1220 str = (OnigUChar *)Z_STRVAL(MBREX(search_str)); in _php_mb_regex_ereg_search_exec()
1221 len = Z_STRLEN(MBREX(search_str)); in _php_mb_regex_ereg_search_exec()
1224 if (MBREX(search_re) == NULL) { in _php_mb_regex_ereg_search_exec()
1234 if (MBREX(search_regs)) { in _php_mb_regex_ereg_search_exec()
1235 onig_region_free(MBREX(search_regs), 1); in _php_mb_regex_ereg_search_exec()
1237 MBREX(search_regs) = onig_region_new(); in _php_mb_regex_ereg_search_exec()
1239 err = onig_search(MBREX(search_re), str, str + len, str + pos, str + len, MBREX(search_regs), 0); in _php_mb_regex_ereg_search_exec()
1241 MBREX(search_pos) = len; in _php_mb_regex_ereg_search_exec()
1252 beg = MBREX(search_regs)->beg[0]; in _php_mb_regex_ereg_search_exec()
1253 end = MBREX(search_regs)->end[0]; in _php_mb_regex_ereg_search_exec()
1259 n = MBREX(search_regs)->num_regs; in _php_mb_regex_ereg_search_exec()
1261 beg = MBREX(search_regs)->beg[i]; in _php_mb_regex_ereg_search_exec()
1262 end = MBREX(search_regs)->end[i]; in _php_mb_regex_ereg_search_exec()
1274 end = MBREX(search_regs)->end[0]; in _php_mb_regex_ereg_search_exec()
1276 MBREX(search_pos) = end; in _php_mb_regex_ereg_search_exec()
1278 MBREX(search_pos) = pos + 1; in _php_mb_regex_ereg_search_exec()
1283 onig_region_free(MBREX(search_regs), 1); in _php_mb_regex_ereg_search_exec()
1284 MBREX(search_regs) = (OnigRegion *)NULL; in _php_mb_regex_ereg_search_exec()
1333 option = MBREX(regex_default_options); in PHP_FUNCTION()
1334 syntax = MBREX(regex_default_syntax); in PHP_FUNCTION()
1343 …if ((MBREX(search_re) = php_mbregex_compile_pattern(arg_pattern, arg_pattern_len, option, MBREX(cu… in PHP_FUNCTION()
1348 if (!Z_ISNULL(MBREX(search_str))) { in PHP_FUNCTION()
1349 zval_ptr_dtor(&MBREX(search_str)); in PHP_FUNCTION()
1352 ZVAL_DUP(&MBREX(search_str), arg_str); in PHP_FUNCTION()
1354 MBREX(search_pos) = 0; in PHP_FUNCTION()
1356 if (MBREX(search_regs) != NULL) { in PHP_FUNCTION()
1357 onig_region_free(MBREX(search_regs), 1); in PHP_FUNCTION()
1358 MBREX(search_regs) = NULL; in PHP_FUNCTION()
1372 if (MBREX(search_regs) != NULL && Z_TYPE(MBREX(search_str)) == IS_STRING) { in PHP_FUNCTION()
1375 str = (OnigUChar *)Z_STRVAL(MBREX(search_str)); in PHP_FUNCTION()
1376 len = Z_STRLEN(MBREX(search_str)); in PHP_FUNCTION()
1377 n = MBREX(search_regs)->num_regs; in PHP_FUNCTION()
1379 beg = MBREX(search_regs)->beg[i]; in PHP_FUNCTION()
1380 end = MBREX(search_regs)->end[i]; in PHP_FUNCTION()
1397 RETVAL_LONG(MBREX(search_pos)); in PHP_FUNCTION()
1411 …position < 0 || (!Z_ISUNDEF(MBREX(search_str)) && Z_TYPE(MBREX(search_str)) == IS_STRING && (size_… in PHP_FUNCTION()
1413 MBREX(search_pos) = 0; in PHP_FUNCTION()
1417 MBREX(search_pos) = position; in PHP_FUNCTION()
1426 *prev_options = MBREX(regex_default_options); in _php_mb_regex_set_options()
1429 *prev_syntax = MBREX(regex_default_syntax); in _php_mb_regex_set_options()
1431 MBREX(regex_default_options) = options; in _php_mb_regex_set_options()
1432 MBREX(regex_default_syntax) = syntax; in _php_mb_regex_set_options()
1456 opt = MBREX(regex_default_options); in PHP_FUNCTION()
1457 syntax = MBREX(regex_default_syntax); in PHP_FUNCTION()