summaryrefslogtreecommitdiff
path: root/Meta
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 /Meta
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 'Meta')
-rw-r--r--Meta/Lagom/Tools/CodeGenerators/LibTimeZone/GenerateTimeZoneData.cpp2
-rw-r--r--Meta/Lagom/Tools/CodeGenerators/LibUnicode/GenerateUnicodeData.cpp2
-rw-r--r--Meta/Lagom/Tools/CodeGenerators/LibUnicode/GeneratorUtil.h2
-rw-r--r--Meta/Lagom/Tools/CodeGenerators/LibWeb/GenerateCSSValueID.cpp2
4 files changed, 4 insertions, 4 deletions
diff --git a/Meta/Lagom/Tools/CodeGenerators/LibTimeZone/GenerateTimeZoneData.cpp b/Meta/Lagom/Tools/CodeGenerators/LibTimeZone/GenerateTimeZoneData.cpp
index a9f7d60467..b93aa98174 100644
--- a/Meta/Lagom/Tools/CodeGenerators/LibTimeZone/GenerateTimeZoneData.cpp
+++ b/Meta/Lagom/Tools/CodeGenerators/LibTimeZone/GenerateTimeZoneData.cpp
@@ -613,7 +613,7 @@ static constexpr Array<Location, @size@> s_time_zone_locations { {
TRY(hashes.try_ensure_capacity(values.size()));
auto hash = [](auto const& value) {
- return CaseInsensitiveStringViewTraits::hash(value);
+ return CaseInsensitiveASCIIStringViewTraits::hash(value);
};
for (auto const& value : values)
diff --git a/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GenerateUnicodeData.cpp b/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GenerateUnicodeData.cpp
index a229ea8238..31c984dab6 100644
--- a/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GenerateUnicodeData.cpp
+++ b/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GenerateUnicodeData.cpp
@@ -1316,7 +1316,7 @@ bool code_point_has_@enum_snake@(u32 code_point, @enum_title@ @enum_snake@)
for (auto const& prop : prop_list) {
if constexpr (IsSame<RemoveCVReference<decltype(prop)>, DeprecatedString>) {
- hashes.set(CaseInsensitiveStringViewTraits::hash(prop), prop);
+ hashes.set(CaseInsensitiveASCIIStringViewTraits::hash(prop), prop);
options.sensitivity = CaseSensitivity::CaseInsensitive;
} else {
hashes.set(prop.key.hash(), prop.key);
diff --git a/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GeneratorUtil.h b/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GeneratorUtil.h
index d10ca258d3..1031cec4df 100644
--- a/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GeneratorUtil.h
+++ b/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GeneratorUtil.h
@@ -454,7 +454,7 @@ Optional<@return_type@> @method_name@(StringView key)
)~~~");
} else {
generator.append(R"~~~(
- auto hash = CaseInsensitiveStringViewTraits::hash(key);
+ auto hash = CaseInsensitiveASCIIStringViewTraits::hash(key);
)~~~");
}
diff --git a/Meta/Lagom/Tools/CodeGenerators/LibWeb/GenerateCSSValueID.cpp b/Meta/Lagom/Tools/CodeGenerators/LibWeb/GenerateCSSValueID.cpp
index 7d2642608a..fbc53f7882 100644
--- a/Meta/Lagom/Tools/CodeGenerators/LibWeb/GenerateCSSValueID.cpp
+++ b/Meta/Lagom/Tools/CodeGenerators/LibWeb/GenerateCSSValueID.cpp
@@ -90,7 +90,7 @@ ErrorOr<void> generate_implementation_file(JsonArray& identifier_data, Core::Fil
namespace Web::CSS {
-HashMap<StringView, ValueID, AK::CaseInsensitiveStringViewTraits> g_stringview_to_value_id_map {
+HashMap<StringView, ValueID, AK::CaseInsensitiveASCIIStringViewTraits> g_stringview_to_value_id_map {
)~~~");
identifier_data.for_each([&](auto& name) {