mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:47:34 +00:00
Everywhere: Rename to_{string => deprecated_string}() where applicable
This will make it easier to support both string types at the same time while we convert code, and tracking down remaining uses. One big exception is Value::to_string() in LibJS, where the name is dictated by the ToString AO.
This commit is contained in:
parent
6e19ab2bbc
commit
57dc179b1f
597 changed files with 1973 additions and 1972 deletions
|
@ -178,7 +178,7 @@ ErrorOr<int> serenity_main(Main::Arguments args)
|
|||
auto pre_match_length = match.global_offset - last_printed_char_pos;
|
||||
out(colored_output ? "{}\x1B[32m{}\x1B[0m"sv : "{}{}"sv,
|
||||
pre_match_length > 0 ? StringView(&str[last_printed_char_pos], pre_match_length) : ""sv,
|
||||
match.view.to_string());
|
||||
match.view.to_deprecated_string());
|
||||
last_printed_char_pos = match.global_offset + match.view.length();
|
||||
}
|
||||
auto remaining_length = str.length() - last_printed_char_pos;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue