mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:17:46 +00:00
AK+Everywhere: Rename String to DeprecatedString
We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
This commit is contained in:
parent
f74251606d
commit
6e19ab2bbc
2006 changed files with 11635 additions and 11636 deletions
|
@ -10,9 +10,9 @@
|
|||
|
||||
namespace PDF {
|
||||
|
||||
String OutlineItem::to_string(int indent) const
|
||||
DeprecatedString OutlineItem::to_string(int indent) const
|
||||
{
|
||||
auto indent_str = String::repeated(" "sv, indent + 1);
|
||||
auto indent_str = DeprecatedString::repeated(" "sv, indent + 1);
|
||||
|
||||
StringBuilder child_builder;
|
||||
child_builder.append('[');
|
||||
|
@ -29,7 +29,7 @@ String OutlineItem::to_string(int indent) const
|
|||
builder.appendff("{}italic={}\n", indent_str, italic);
|
||||
builder.appendff("{}bold={}\n", indent_str, bold);
|
||||
builder.appendff("{}children={}\n", indent_str, child_builder.to_string());
|
||||
builder.appendff("{}}}", String::repeated(" "sv, indent));
|
||||
builder.appendff("{}}}", DeprecatedString::repeated(" "sv, indent));
|
||||
|
||||
return builder.to_string();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue