Home
last modified time | relevance | path

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

/PHP-7.4/ext/mbstring/
H A Dphp_mbregex.c454 static php_mb_regex_t *php_mbregex_compile_pattern(const char *pattern, size_t patlen, OnigOptionTy… in php_mbregex_compile_pattern() argument
461 if (!php_mb_check_encoding(pattern, patlen, _php_mb_regex_mbctype2name(enc))) { in php_mbregex_compile_pattern()
467 rc = zend_hash_str_find_ptr(&MBREX(ht_rc), (char *)pattern, patlen); in php_mbregex_compile_pattern()
469 …if ((err_code = onig_new(&retval, (OnigUChar *)pattern, (OnigUChar *)(pattern + patlen), options, … in php_mbregex_compile_pattern()
478 zend_hash_str_update_ptr(&MBREX(ht_rc), (char *)pattern, patlen, retval); in php_mbregex_compile_pattern()
/PHP-7.4/ext/pcre/pcre2lib/
H A Dpcre2_compile.c9638 pcre2_compile(PCRE2_SPTR pattern, PCRE2_SIZE patlen, uint32_t options, in pcre2_compile() argument
9734 if ((zero_terminated = (patlen == PCRE2_ZERO_TERMINATED))) in pcre2_compile()
9735 patlen = PRIV(strlen)(pattern); in pcre2_compile()
9737 if (patlen > ccontext->max_pattern_length) in pcre2_compile()
9760 cb.end_pattern = pattern + patlen; in pcre2_compile()
9819 while (patlen - skipatstart >= 2 && in pcre2_compile()
9828 if (patlen - skipatstart - 2 >= p->length && in pcre2_compile()
9916 (errorcode = PRIV(valid_utf)(pattern, patlen, erroroffset)) != 0) in pcre2_compile()
10008 parsed_size_needed = patlen - skipatstart + big32count; in pcre2_compile()
10098 cb.erroroffset = patlen; /* For any subsequent errors that do not set it */ in pcre2_compile()
[all …]

Completed in 29 milliseconds