mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:47:45 +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
|
@ -560,7 +560,7 @@ void canonicalize_unicode_extension_values(StringView key, DeprecatedString& val
|
|||
// FIXME: Subdivision subtags do not appear in the CLDR likelySubtags.json file.
|
||||
// Implement the spec's recommendation of using just the first alias for now,
|
||||
// but we should determine if there's anything else needed here.
|
||||
value = aliases[0].to_string();
|
||||
value = aliases[0].to_deprecated_string();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -903,10 +903,10 @@ DeprecatedString resolve_most_likely_territory_alias(LanguageID const& language_
|
|||
return territory.release_value();
|
||||
}
|
||||
|
||||
return aliases[0].to_string();
|
||||
return aliases[0].to_deprecated_string();
|
||||
}
|
||||
|
||||
DeprecatedString LanguageID::to_string() const
|
||||
DeprecatedString LanguageID::to_deprecated_string() const
|
||||
{
|
||||
StringBuilder builder;
|
||||
|
||||
|
@ -927,7 +927,7 @@ DeprecatedString LanguageID::to_string() const
|
|||
return builder.build();
|
||||
}
|
||||
|
||||
DeprecatedString LocaleID::to_string() const
|
||||
DeprecatedString LocaleID::to_deprecated_string() const
|
||||
{
|
||||
StringBuilder builder;
|
||||
|
||||
|
@ -939,7 +939,7 @@ DeprecatedString LocaleID::to_string() const
|
|||
builder.append(*segment);
|
||||
};
|
||||
|
||||
append_segment(language_id.to_string());
|
||||
append_segment(language_id.to_deprecated_string());
|
||||
|
||||
for (auto const& extension : extensions) {
|
||||
extension.visit(
|
||||
|
@ -955,7 +955,7 @@ DeprecatedString LocaleID::to_string() const
|
|||
[&](TransformedExtension const& ext) {
|
||||
builder.append("-t"sv);
|
||||
if (ext.language.has_value())
|
||||
append_segment(ext.language->to_string());
|
||||
append_segment(ext.language->to_deprecated_string());
|
||||
for (auto const& field : ext.fields) {
|
||||
append_segment(field.key);
|
||||
append_segment(field.value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue