I need to implement a case-insensitive hash function. I also need to compare two strings (case-insensitive) allowing only for letters and apostrophes. I see two approaches:
Convert both strings to lowercase, and then do a normal compare and (case-sensitive) hash.
Have a case-insensitive hash and have a case-insensitive compare.
Any ideas on which is faster (speed really matters), or better ideas?