mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 02:09:24 +00:00
AK: Make CaseInsensitiveStringTraits allocation-free
Instead of calling String::to_lowercase(), do case-insensitive hashing and comparison.
This commit is contained in:
parent
1b6ed558bb
commit
2dd3b54827
Notes:
sideshowbarker
2024-07-17 18:32:08 +09:00
Author: https://github.com/awesomekling
Commit: 2dd3b54827
3 changed files with 9 additions and 2 deletions
|
@ -75,6 +75,8 @@ public:
|
|||
return m_hash;
|
||||
}
|
||||
|
||||
unsigned case_insensitive_hash() const;
|
||||
|
||||
bool is_fly() const { return m_fly; }
|
||||
void set_fly(Badge<FlyString>, bool fly) const { m_fly = fly; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue