mediawiki-extensions-AbuseF.../tests/parserTests
Bartosz Dziewoński 5fc30112c7 Optimize 'count()' function
substr_count() is just as fast as looped strpos() when there are no
matches, and gets faster as the number of matches increases.

Note that this introduces a small change in behavior when the needle
is composed of repeated substrings, e.g. 'asdasdasd' or 'aa', and
haystack is such that the needle can be matched in overlapping
positions, e.g. 'asdasdasdasd' or 'aaaaa'. The old implementation
counted overlapping matches, the new one doesn't. I don't think this
behavior was intentional and I don't think this change will cause any
real problems.

Change-Id: Icc905ca34bf08d63e969787a5e3c119d498bf878
2016-04-17 08:32:27 +02:00
..
arith.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
arith.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
arrays.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
arrays.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
bug25373.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
bug25373.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
cast.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
cast.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
ccnorm.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
ccnorm.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
comment.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
comment.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
count.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
count.t Optimize 'count()' function 2016-04-17 08:32:27 +02:00
eq.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
eq.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
float.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
float.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
ifthen.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
ifthen.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
in.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
in.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
lcase.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
lcase.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
length.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
length.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
like.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
like.t Fix double escaping in AFPData::keywordLike() 2014-07-11 14:56:42 -07:00
norm.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
norm.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
numbers.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
numbers.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
ord.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
ord.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
prec.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
prec.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
regex.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
regex.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
rmdoubles.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
rmdoubles.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
rmspecials.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
rmspecials.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
shortcircuit.r Improve ignoring short-circuited operations 2016-04-09 16:25:52 +02:00
shortcircuit.t Improve ignoring short-circuited operations 2016-04-09 16:25:52 +02:00
specialratio.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
specialratio.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
string.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
string.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
tern.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
tern.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
ucase.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
ucase.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
utf8.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
utf8.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
vars.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
vars.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
whitespace.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
whitespace1.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
whitespace1.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
wptest1.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
wptest1.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
wptest2.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
wptest2.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
wptest3.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
wptest3.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00