summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/ARIA/Roles.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2023-03-10 08:48:54 +0100
committerAndreas Kling <kling@serenityos.org>2023-03-10 13:15:44 +0100
commita504ac3e2a57654b96501b3a1ba80f37b3381dc8 (patch)
tree767a7e21a858e4b5c6dfec77dd52b540a0e4cf49 /Userland/Libraries/LibWeb/ARIA/Roles.cpp
parent03cc45e5a2ecc5d173aa121404d7ed8251c109f8 (diff)
downloadserenity-a504ac3e2a57654b96501b3a1ba80f37b3381dc8.zip
Everywhere: Rename equals_ignoring_case => equals_ignoring_ascii_case
Let's make it clear that these functions deal with ASCII case only.
Diffstat (limited to 'Userland/Libraries/LibWeb/ARIA/Roles.cpp')
-rw-r--r--Userland/Libraries/LibWeb/ARIA/Roles.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/Userland/Libraries/LibWeb/ARIA/Roles.cpp b/Userland/Libraries/LibWeb/ARIA/Roles.cpp
index 0748563ae0..823959c96e 100644
--- a/Userland/Libraries/LibWeb/ARIA/Roles.cpp
+++ b/Userland/Libraries/LibWeb/ARIA/Roles.cpp
@@ -28,13 +28,13 @@ StringView role_name(Role role)
Optional<Role> role_from_string(StringView role_name)
{
// Note: "switch" is mapped to Role::switch_ (due to C++ keyword clash)
-#define __ENUMERATE_ARIA_ROLE(name) \
- if constexpr (Role::name == Role::switch_) { \
- if (role_name.equals_ignoring_case("switch"sv)) \
- return Role::switch_; \
- } else { \
- if (role_name.equals_ignoring_case(#name##sv)) \
- return Role::name; \
+#define __ENUMERATE_ARIA_ROLE(name) \
+ if constexpr (Role::name == Role::switch_) { \
+ if (role_name.equals_ignoring_ascii_case("switch"sv)) \
+ return Role::switch_; \
+ } else { \
+ if (role_name.equals_ignoring_ascii_case(#name##sv)) \
+ return Role::name; \
}
ENUMERATE_ARIA_ROLES
#undef __ENUMERATE_ARIA_ROLE