mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:27:35 +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
|
@ -26,21 +26,21 @@ DeprecatedString MarkupGenerator::html_from_source(StringView source)
|
|||
builder.append(token.trivia());
|
||||
builder.append(wrap_string_in_style(token.value(), style_type_for_token(token)));
|
||||
}
|
||||
return builder.to_string();
|
||||
return builder.to_deprecated_string();
|
||||
}
|
||||
|
||||
DeprecatedString MarkupGenerator::html_from_value(Value value)
|
||||
{
|
||||
StringBuilder output_html;
|
||||
value_to_html(value, output_html);
|
||||
return output_html.to_string();
|
||||
return output_html.to_deprecated_string();
|
||||
}
|
||||
|
||||
DeprecatedString MarkupGenerator::html_from_error(Error const& object, bool in_promise)
|
||||
{
|
||||
StringBuilder output_html;
|
||||
error_to_html(object, output_html, in_promise);
|
||||
return output_html.to_string();
|
||||
return output_html.to_deprecated_string();
|
||||
}
|
||||
|
||||
void MarkupGenerator::value_to_html(Value value, StringBuilder& output_html, HashTable<Object*> seen_objects)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue