tango regex: case insensitive -> defaulting to lower case

Ingo Oeser ioe-news at rameria.de
Thu Aug 16 15:04:26 PDT 2007


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



More information about the Digitalmars-d mailing list