mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 21:48:11 +00:00
Everywhere: Rename equals_ignoring_case => equals_ignoring_ascii_case
Let's make it clear that these functions deal with ASCII case only.
This commit is contained in:
parent
03cc45e5a2
commit
a504ac3e2a
76 changed files with 480 additions and 476 deletions
|
@ -245,9 +245,9 @@ Optional<bool> Value::to_bool() const
|
|||
|
||||
return m_value->visit(
|
||||
[](DeprecatedString const& value) -> Optional<bool> {
|
||||
if (value.equals_ignoring_case("true"sv) || value.equals_ignoring_case("t"sv))
|
||||
if (value.equals_ignoring_ascii_case("true"sv) || value.equals_ignoring_ascii_case("t"sv))
|
||||
return true;
|
||||
if (value.equals_ignoring_case("false"sv) || value.equals_ignoring_case("f"sv))
|
||||
if (value.equals_ignoring_ascii_case("false"sv) || value.equals_ignoring_ascii_case("f"sv))
|
||||
return false;
|
||||
return {};
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue