Broken out of bug 100214: We need a fast way of case-insensitively comparing strings (or chunks of them) without incuring a two virtual method calls to nsICaseConversion::ToUpper() for every character compared. One option would be to upcase both strings being compared, but that would require a buffer to hold each string, and that also incurs unnecessary costs of maintaining this buffer, etc. And so, I propose we add a method to nsICaseConversion, CaseCompare() which does this comparison for us. patches forthcoming
Switching qa contact to email@example.com, who is qa contact of bug 100214. Please re-assign further as appropriate.
QA Contact: andreasb → scc
Not sure I like the name "CaseCompare", "CaseInsensitiveCompare" would be more appropriate. Other than that, r=jag
CompareIgnorngCase? Definitely not "CaseCompare", though. sr=shaver
checked in as "CaseInsensitiveCompare" - thanks folks
Status: NEW → RESOLVED
Last Resolved: 18 years ago
Resolution: --- → FIXED
by the way, there are no consumers of this until I finish with bug 100214
You need to log in before you can comment on or make changes to this bug.