mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-24 18:02:20 +00:00
AK: Remove unused ByteString titlecase/invert case conversions
This commit is contained in:
parent
c8bb3030fd
commit
05627b6f45
Notes:
github-actions[bot]
2025-04-07 15:45:57 +00:00
Author: https://github.com/trflynn89
Commit: 05627b6f45
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4253
4 changed files with 0 additions and 27 deletions
|
@ -504,20 +504,6 @@ ByteString to_titlecase(StringView str)
|
|||
return builder.to_byte_string();
|
||||
}
|
||||
|
||||
ByteString invert_case(StringView str)
|
||||
{
|
||||
StringBuilder builder(str.length());
|
||||
|
||||
for (auto ch : str) {
|
||||
if (is_ascii_lower_alpha(ch))
|
||||
builder.append(to_ascii_uppercase(ch));
|
||||
else
|
||||
builder.append(to_ascii_lowercase(ch));
|
||||
}
|
||||
|
||||
return builder.to_byte_string();
|
||||
}
|
||||
|
||||
// Finishes the replacing algorithm once it is known that ita least one
|
||||
// replacemnet is going to be done. Otherwise the caller may want to follow a
|
||||
// different route to construct its output.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue