$count - 02/04/06 07:17 PM
$count is incorrectly returning the number of substrings in certain cases.
however, i feel that this will be a philosophical argument rather than a bugfix
$count(eee,ee) returns 1, but there are infact 2 instances of "ee" in there (1-2) and (2-3)
i cant imagine why u would exclude the letters you've already checked. this has to be a bug that seemed at first like it would speed up $count checks
does "ee" really appear only 5 times in "eeeeeeeeee" ??
however, i feel that this will be a philosophical argument rather than a bugfix
$count(eee,ee) returns 1, but there are infact 2 instances of "ee" in there (1-2) and (2-3)
i cant imagine why u would exclude the letters you've already checked. this has to be a bug that seemed at first like it would speed up $count checks
does "ee" really appear only 5 times in "eeeeeeeeee" ??