Home
last modified time | relevance | path

Searched refs:patlen (Results 1 – 2 of 2) sorted by relevance

/php-src/ext/mbstring/
H A Dphp_mbregex.c455 static php_mb_regex_t *php_mbregex_compile_pattern(const char *pattern, size_t patlen, OnigOptionTy… in php_mbregex_compile_pattern() argument
463 if (!php_mb_check_encoding(pattern, patlen, php_mb_regex_get_mbctype_encoding())) { in php_mbregex_compile_pattern()
469 rc = zend_hash_str_find_ptr(&MBREX(ht_rc), (char *)pattern, patlen); in php_mbregex_compile_pattern()
471 …if ((err_code = onig_new(&retval, (OnigUChar *)pattern, (OnigUChar *)(pattern + patlen), options, … in php_mbregex_compile_pattern()
480 zend_hash_str_update_ptr(&MBREX(ht_rc), (char *)pattern, patlen, retval); in php_mbregex_compile_pattern()
/php-src/ext/pcre/pcre2lib/
H A Dpcre2_compile.c10126 pcre2_compile(PCRE2_SPTR pattern, PCRE2_SIZE patlen, uint32_t options, in pcre2_compile() argument
10189 if (patlen == 0) pattern = (PCRE2_SPTR)""; else in pcre2_compile()
10225 if ((zero_terminated = (patlen == PCRE2_ZERO_TERMINATED))) in pcre2_compile()
10226 patlen = PRIV(strlen)(pattern); in pcre2_compile()
10228 if (patlen > ccontext->max_pattern_length) in pcre2_compile()
10251 cb.end_pattern = pattern + patlen; in pcre2_compile()
10310 while (patlen - skipatstart >= 2 && in pcre2_compile()
10319 if (patlen - skipatstart - 2 >= p->length && in pcre2_compile()
10407 (errorcode = PRIV(valid_utf)(pattern, patlen, erroroffset)) != 0) in pcre2_compile()
10499 parsed_size_needed = patlen - skipatstart + big32count; in pcre2_compile()
[all …]

Completed in 30 milliseconds