Add case-insensitive string hash functions to mfbt and use them where appropriate

NEW
Unassigned

Status

()

Core
MFBT
6 years ago
6 years ago

People

(Reporter: Justin Lebar (not reading bugmail), Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

6 years ago
We probably want four hash functions:

 1) "Correct" ASCII lower-case, which converts to ASCII lower-case before hashing
 2) "Fast" ASCII lower-case, which hashes |c & 0x20|
 3) Correct UTF16 lower-case

(1) is useful for a hash in nsHttp.cpp
(2) is useful for nsStaticNameTable.cpp.
(3) is useful for nsStringCaseInsensitiveHashKey in nsHashKeys.h.
(Reporter)

Comment 1

6 years ago
> We probably want four hash functions:

erm, I guess that's three, isn't it?  (The fourth would be "Correct UTF8 lower-case", which doesn't have a potential user in the code that I see.)
You need to log in before you can comment on or make changes to this bug.