mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 03:29:49 +00:00
Everywhere: Remove DeprecatedFlyString + any remaining references to it
This commit is contained in:
parent
aab3fbe254
commit
3131e6369f
Notes:
github-actions[bot]
2025-04-01 10:50:54 +00:00
Author: https://github.com/kennethmyhra
Commit: 3131e6369f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4153
23 changed files with 13 additions and 298 deletions
|
@ -7,7 +7,6 @@
|
|||
#include <LibTest/TestCase.h>
|
||||
|
||||
#include <AK/ByteString.h>
|
||||
#include <AK/DeprecatedFlyString.h>
|
||||
#include <AK/StringBuilder.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <cstring>
|
||||
|
@ -139,26 +138,6 @@ TEST_CASE(to_uppercase)
|
|||
EXPECT(ByteString("AbC").to_uppercase() == "ABC");
|
||||
}
|
||||
|
||||
TEST_CASE(flystring)
|
||||
{
|
||||
{
|
||||
DeprecatedFlyString a("foo");
|
||||
DeprecatedFlyString b("foo");
|
||||
EXPECT_EQ(a.impl(), b.impl());
|
||||
}
|
||||
|
||||
{
|
||||
ByteString a = "foo";
|
||||
DeprecatedFlyString b = a;
|
||||
StringBuilder builder;
|
||||
builder.append('f');
|
||||
builder.append("oo"sv);
|
||||
DeprecatedFlyString c = builder.to_byte_string();
|
||||
EXPECT_EQ(a.impl(), b.impl());
|
||||
EXPECT_EQ(a.impl(), c.impl());
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE(replace)
|
||||
{
|
||||
ByteString test_string = "Well, hello Friends!";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue