Case-insensitive BoyerMooreFinder

Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Nov 23 12:42:18 PST 2015


On 11/21/2015 08:50 AM, Ralf wrote:

> The problem is here:
> https://github.com/D-Programming-Language/phobos/blob/v2.069.1/std/algorithm/searching.d#L280
>
>
> When it looks letters up in its private lookup tables, it uses the
> original letters, not the lower case ones. To work around this, I copied
> the algorithm class, customized this to use the .toLower letter here as
> well and it works like a charm.

Please bring this up on the main newsgroup. It sounds like an oversight 
to me, which may require an API change.

Ali



More information about the Digitalmars-d-learn mailing list