diff options
author | Andreas Kling <kling@serenityos.org> | 2023-03-10 08:48:54 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-03-10 13:15:44 +0100 |
commit | a504ac3e2a57654b96501b3a1ba80f37b3381dc8 (patch) | |
tree | 767a7e21a858e4b5c6dfec77dd52b540a0e4cf49 /AK/URLParser.cpp | |
parent | 03cc45e5a2ecc5d173aa121404d7ed8251c109f8 (diff) | |
download | serenity-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 'AK/URLParser.cpp')
-rw-r--r-- | AK/URLParser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/AK/URLParser.cpp b/AK/URLParser.cpp index 50eec3d167..ee949c2a92 100644 --- a/AK/URLParser.cpp +++ b/AK/URLParser.cpp @@ -108,12 +108,12 @@ constexpr bool is_normalized_windows_drive_letter(StringView input) constexpr bool is_single_dot_path_segment(StringView input) { - return input == "."sv || input.equals_ignoring_case("%2e"sv); + return input == "."sv || input.equals_ignoring_ascii_case("%2e"sv); } constexpr bool is_double_dot_path_segment(StringView input) { - return input == ".."sv || input.equals_ignoring_case(".%2e"sv) || input.equals_ignoring_case("%2e."sv) || input.equals_ignoring_case("%2e%2e"sv); + return input == ".."sv || input.equals_ignoring_ascii_case(".%2e"sv) || input.equals_ignoring_ascii_case("%2e."sv) || input.equals_ignoring_ascii_case("%2e%2e"sv); } // https://url.spec.whatwg.org/#string-percent-encode-after-encoding |