mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +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
|
@ -35,9 +35,9 @@ public:
|
|||
|
||||
Tuple& operator=(Tuple const&);
|
||||
|
||||
[[nodiscard]] String to_string() const;
|
||||
explicit operator String() const { return to_string(); }
|
||||
[[nodiscard]] Vector<String> to_string_vector() const;
|
||||
[[nodiscard]] DeprecatedString to_string() const;
|
||||
explicit operator DeprecatedString() const { return to_string(); }
|
||||
[[nodiscard]] Vector<DeprecatedString> to_string_vector() const;
|
||||
|
||||
bool operator<(Tuple const& other) const { return compare(other) < 0; }
|
||||
bool operator<=(Tuple const& other) const { return compare(other) <= 0; }
|
||||
|
@ -47,12 +47,12 @@ public:
|
|||
bool operator>=(Tuple const& other) const { return compare(other) >= 0; }
|
||||
|
||||
[[nodiscard]] bool is_null() const { return m_data.is_empty(); }
|
||||
[[nodiscard]] bool has(String const& name) const { return index_of(name).has_value(); }
|
||||
[[nodiscard]] bool has(DeprecatedString const& name) const { return index_of(name).has_value(); }
|
||||
|
||||
Value const& operator[](size_t ix) const { return m_data[ix]; }
|
||||
Value& operator[](size_t ix) { return m_data[ix]; }
|
||||
Value const& operator[](String const& name) const;
|
||||
Value& operator[](String const& name);
|
||||
Value const& operator[](DeprecatedString const& name) const;
|
||||
Value& operator[](DeprecatedString const& name);
|
||||
void append(Value const&);
|
||||
Tuple& operator+=(Value const&);
|
||||
void extend(Tuple const&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue