mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:58:11 +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
|
@ -7,10 +7,10 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/DeprecatedString.h>
|
||||
#include <AK/FlyString.h>
|
||||
#include <AK/Function.h>
|
||||
#include <AK/OwnPtr.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/Types.h>
|
||||
#include <AK/Variant.h>
|
||||
#include <AK/Vector.h>
|
||||
|
@ -39,10 +39,10 @@ public:
|
|||
};
|
||||
|
||||
struct Attribute {
|
||||
String prefix;
|
||||
String local_name { "" };
|
||||
String namespace_;
|
||||
String value { "" };
|
||||
DeprecatedString prefix;
|
||||
DeprecatedString local_name { "" };
|
||||
DeprecatedString namespace_;
|
||||
DeprecatedString value { "" };
|
||||
Position name_start_position;
|
||||
Position value_start_position;
|
||||
Position name_end_position;
|
||||
|
@ -51,9 +51,9 @@ public:
|
|||
|
||||
struct DoctypeData {
|
||||
// NOTE: "Missing" is a distinct state from the empty string.
|
||||
String name;
|
||||
String public_identifier;
|
||||
String system_identifier;
|
||||
DeprecatedString name;
|
||||
DeprecatedString public_identifier;
|
||||
DeprecatedString system_identifier;
|
||||
bool missing_name { true };
|
||||
bool missing_public_identifier { true };
|
||||
bool missing_system_identifier { true };
|
||||
|
@ -140,7 +140,7 @@ public:
|
|||
return m_string_data;
|
||||
}
|
||||
|
||||
void set_comment(String comment)
|
||||
void set_comment(DeprecatedString comment)
|
||||
{
|
||||
VERIFY(is_comment());
|
||||
m_string_data = move(comment);
|
||||
|
@ -152,7 +152,7 @@ public:
|
|||
return m_string_data;
|
||||
}
|
||||
|
||||
void set_tag_name(String name)
|
||||
void set_tag_name(DeprecatedString name)
|
||||
{
|
||||
VERIFY(is_start_tag() || is_end_tag());
|
||||
m_string_data = move(name);
|
||||
|
@ -315,7 +315,7 @@ public:
|
|||
|
||||
Type type() const { return m_type; }
|
||||
|
||||
String to_string() const;
|
||||
DeprecatedString to_string() const;
|
||||
|
||||
Position const& start_position() const { return m_start_position; }
|
||||
Position const& end_position() const { return m_end_position; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue