mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +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:
committed by
Andreas Kling
parent
6e19ab2bbc
commit
57dc179b1f
@@ -161,14 +161,14 @@ size_t Tuple::length() const
|
||||
return len;
|
||||
}
|
||||
|
||||
DeprecatedString Tuple::to_string() const
|
||||
DeprecatedString Tuple::to_deprecated_string() const
|
||||
{
|
||||
StringBuilder builder;
|
||||
for (auto& part : m_data) {
|
||||
if (!builder.is_empty()) {
|
||||
builder.append('|');
|
||||
}
|
||||
builder.append(part.to_string());
|
||||
builder.append(part.to_deprecated_string());
|
||||
}
|
||||
if (pointer() != 0) {
|
||||
builder.appendff(":{}", pointer());
|
||||
@@ -176,11 +176,11 @@ DeprecatedString Tuple::to_string() const
|
||||
return builder.build();
|
||||
}
|
||||
|
||||
Vector<DeprecatedString> Tuple::to_string_vector() const
|
||||
Vector<DeprecatedString> Tuple::to_deprecated_string_vector() const
|
||||
{
|
||||
Vector<DeprecatedString> ret;
|
||||
for (auto& value : m_data) {
|
||||
ret.append(value.to_string());
|
||||
ret.append(value.to_deprecated_string());
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user