]> granicus.if.org Git - php/commit
Add MBFL_SUBSTR_TO_END mode to mbfl_substr
authorNikita Popov <nikita.ppv@gmail.com>
Sun, 23 Jul 2017 21:10:53 +0000 (23:10 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Sun, 23 Jul 2017 21:17:12 +0000 (23:17 +0200)
commit445e13b149fe68faa9aa4cd7b0921519266dc2e5
treee90cf31b7fcbff282d3c747ba01a7b3cdbd17739
parent0e8346bd16af9d7ef26f61033ba979fc547d1d8b
Add MBFL_SUBSTR_TO_END mode to mbfl_substr

This takes the substr from the offset to the end of the string.
This avoids pointless searching for the end position and also
saves us a length calculation in the strstr family of functions.
ext/mbstring/libmbfl/mbfl/mbfilter.c
ext/mbstring/libmbfl/mbfl/mbfilter.h
ext/mbstring/mbstring.c