AK: Remove unused ByteString titlecase/invert case conversions

This commit is contained in:
Timothy Flynn 2025-04-06 10:16:24 -04:00 committed by Andreas Kling
parent c8bb3030fd
commit 05627b6f45
Notes: github-actions[bot] 2025-04-07 15:45:57 +00:00
4 changed files with 0 additions and 27 deletions

View file

@ -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.