mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
AK+Everywhere: Change StringView case conversions to return String
There's a bit of a UTF-8 assumption with this change. But nearly every caller of these methods were immediately creating a String from the resulting ByteString anyways.
This commit is contained in:
parent
05627b6f45
commit
0a256b0a9a
Notes:
github-actions[bot]
2025-04-07 15:45:50 +00:00
Author: https://github.com/trflynn89
Commit: 0a256b0a9a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4253
15 changed files with 57 additions and 56 deletions
|
@ -89,7 +89,7 @@ static ByteString convert_enumeration_value_to_cpp_enum_member(ByteString const&
|
|||
|
||||
auto word = lexer.consume_while([](auto c) { return is_ascii_alphanumeric(c); });
|
||||
if (!word.is_empty()) {
|
||||
builder.append(word.to_titlecase_string());
|
||||
builder.append(word.to_ascii_titlecase_string());
|
||||
} else {
|
||||
auto non_alnum_string = lexer.consume_while([](auto c) { return !is_ascii_alphanumeric(c); });
|
||||
if (!non_alnum_string.is_empty())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue