mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 11:39:43 +00:00
Everywhere: Remove DeprecatedFlyString + any remaining references to it
This reverts commit 7c32d1e8a5
.
This commit is contained in:
parent
4136d8d13e
commit
82a2ae99c8
Notes:
github-actions[bot]
2025-04-02 09:44:09 +00:00
Author: https://github.com/alimpfard
Commit: 82a2ae99c8
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4181
22 changed files with 13 additions and 297 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