mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14: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
|
@ -113,7 +113,7 @@ void serialize_a_url(StringBuilder& builder, StringView url)
|
|||
// To serialize a URL means to create a string represented by "url(",
|
||||
// followed by the serialization of the URL as a string, followed by ")".
|
||||
builder.append("url("sv);
|
||||
serialize_a_string(builder, url.to_string());
|
||||
serialize_a_string(builder, url.to_deprecated_string());
|
||||
builder.append(')');
|
||||
}
|
||||
|
||||
|
@ -123,7 +123,7 @@ void serialize_a_local(StringBuilder& builder, StringView path)
|
|||
// To serialize a LOCAL means to create a string represented by "local(",
|
||||
// followed by the serialization of the LOCAL as a string, followed by ")".
|
||||
builder.append("local("sv);
|
||||
serialize_a_string(builder, path.to_string());
|
||||
serialize_a_string(builder, path.to_deprecated_string());
|
||||
builder.append(')');
|
||||
}
|
||||
|
||||
|
@ -131,7 +131,7 @@ void serialize_a_local(StringBuilder& builder, StringView path)
|
|||
void serialize_unicode_ranges(StringBuilder& builder, Vector<UnicodeRange> const& unicode_ranges)
|
||||
{
|
||||
serialize_a_comma_separated_list(builder, unicode_ranges, [&](UnicodeRange unicode_range) {
|
||||
serialize_a_string(builder, unicode_range.to_string());
|
||||
serialize_a_string(builder, unicode_range.to_deprecated_string());
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -151,42 +151,42 @@ DeprecatedString escape_a_character(u32 character)
|
|||
{
|
||||
StringBuilder builder;
|
||||
escape_a_character(builder, character);
|
||||
return builder.to_string();
|
||||
return builder.to_deprecated_string();
|
||||
}
|
||||
|
||||
DeprecatedString escape_a_character_as_code_point(u32 character)
|
||||
{
|
||||
StringBuilder builder;
|
||||
escape_a_character_as_code_point(builder, character);
|
||||
return builder.to_string();
|
||||
return builder.to_deprecated_string();
|
||||
}
|
||||
|
||||
DeprecatedString serialize_an_identifier(StringView ident)
|
||||
{
|
||||
StringBuilder builder;
|
||||
serialize_an_identifier(builder, ident);
|
||||
return builder.to_string();
|
||||
return builder.to_deprecated_string();
|
||||
}
|
||||
|
||||
DeprecatedString serialize_a_string(StringView string)
|
||||
{
|
||||
StringBuilder builder;
|
||||
serialize_a_string(builder, string);
|
||||
return builder.to_string();
|
||||
return builder.to_deprecated_string();
|
||||
}
|
||||
|
||||
DeprecatedString serialize_a_url(StringView url)
|
||||
{
|
||||
StringBuilder builder;
|
||||
serialize_a_url(builder, url);
|
||||
return builder.to_string();
|
||||
return builder.to_deprecated_string();
|
||||
}
|
||||
|
||||
DeprecatedString serialize_a_srgb_value(Color color)
|
||||
{
|
||||
StringBuilder builder;
|
||||
serialize_a_srgb_value(builder, color);
|
||||
return builder.to_string();
|
||||
return builder.to_deprecated_string();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue