1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 09:37:44 +00:00

AK+Everywhere: Rename FlyString to DeprecatedFlyString

DeprecatedFlyString relies heavily on DeprecatedString's StringImpl, so
let's rename it to A) match the name of DeprecatedString, B) write a new
FlyString class that is tied to String.
This commit is contained in:
Timothy Flynn 2023-01-08 19:23:00 -05:00 committed by Linus Groh
parent 2eacc7aec1
commit f3db548a3d
316 changed files with 1177 additions and 1177 deletions

View file

@ -6,8 +6,8 @@
#include <LibTest/TestCase.h>
#include <AK/DeprecatedFlyString.h>
#include <AK/DeprecatedString.h>
#include <AK/FlyString.h>
#include <AK/StringBuilder.h>
#include <AK/Vector.h>
#include <cstring>
@ -145,18 +145,18 @@ TEST_CASE(to_uppercase)
TEST_CASE(flystring)
{
{
FlyString a("foo");
FlyString b("foo");
DeprecatedFlyString a("foo");
DeprecatedFlyString b("foo");
EXPECT_EQ(a.impl(), b.impl());
}
{
DeprecatedString a = "foo";
FlyString b = a;
DeprecatedFlyString b = a;
StringBuilder builder;
builder.append('f');
builder.append("oo"sv);
FlyString c = builder.to_deprecated_string();
DeprecatedFlyString c = builder.to_deprecated_string();
EXPECT_EQ(a.impl(), b.impl());
EXPECT_EQ(a.impl(), c.impl());
}