summaryrefslogtreecommitdiff
path: root/AK/StringView.h
diff options
context:
space:
mode:
authorgustrb <gustavoreisbauer@gmail.com>2023-03-14 08:40:53 -0300
committerLinus Groh <mail@linusgroh.de>2023-03-14 21:34:32 +0000
commit5141c865879bc8de6ffd98d4ea6f3fbd59b6434b (patch)
treed345ceaaee8949c57b91705f07469d6b08e187a7 /AK/StringView.h
parent8ba6cd6ab97017df8e402480ad3b8cac8a498525 (diff)
downloadserenity-5141c865879bc8de6ffd98d4ea6f3fbd59b6434b.zip
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. ;)
Diffstat (limited to 'AK/StringView.h')
-rw-r--r--AK/StringView.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/AK/StringView.h b/AK/StringView.h
index aeccf623c4..c2ea6759dd 100644
--- a/AK/StringView.h
+++ b/AK/StringView.h
@@ -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