]> granicus.if.org Git - php/commit
Base mbfl_strpos on zend_memnstr
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 24 Jan 2020 10:29:34 +0000 (11:29 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 24 Jan 2020 10:29:34 +0000 (11:29 +0100)
commitd504ad57172096bd39ad7d3524e416f2ed91a2cc
tree42877ceacd9ceaf4179f25942277828d0f50e312
parent73b31302ed210ea4fc7389433ead8b324b799cee
Base mbfl_strpos on zend_memnstr

The same algorithm is also used by zend_memnstr, but it also has
a fast-path for short strings / needles, where a more naive
search performs better.
ext/mbstring/libmbfl/mbfl/mbfilter.c