1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 08:34:57 +00:00

AK: Rename CaseInsensitiveStringViewTraits to reflect intent

Now it is called `CaseInsensitiveASCIIStringViewTraits`, so we can be
more specific about what data structure does it operate onto. ;)
This commit is contained in:
gustrb 2023-03-14 08:40:53 -03:00 committed by Linus Groh
parent 8ba6cd6ab9
commit 5141c86587
7 changed files with 10 additions and 11 deletions

View file

@ -359,8 +359,7 @@ struct Traits<StringView> : public GenericTraits<StringView> {
static unsigned hash(StringView s) { return s.hash(); }
};
// FIXME: Rename this to indicate that it's about ASCII-only case insensitivity.
struct CaseInsensitiveStringViewTraits : public Traits<StringView> {
struct CaseInsensitiveASCIIStringViewTraits : public Traits<StringView> {
static unsigned hash(StringView s)
{
if (s.is_empty())
@ -386,6 +385,6 @@ struct CaseInsensitiveStringViewTraits : public Traits<StringView> {
}
#if USING_AK_GLOBALLY
using AK::CaseInsensitiveStringViewTraits;
using AK::CaseInsensitiveASCIIStringViewTraits;
using AK::StringView;
#endif