www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - tango regex: case insensitive -> defaulting to lower case

Hi tango hackers,

I'm currently reading the tango library and was wondering,
why the case insensitive comparisons always default to upper case.

Most texts are lower case with sparse upper case characters.
The only exception I know are DOS file names, which are upper case
and compared case insensitive.

So I suggest storing lower case characters and comparing lower case
first, lower casing the character, if it doesn't match.

This should increase performance due to less case conversions being done.

What do you think? Would a patch to tango.text.Regex for this be accepted?
Where should I put the patch?

Best Regards

Ingo Oeser
Aug 16 2007