mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:17:35 +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
|
@ -6,9 +6,9 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/DeprecatedString.h>
|
||||
#include <AK/NonnullOwnPtr.h>
|
||||
#include <AK/RefCounted.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/Variant.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <LibWeb/CSS/GeneralEnclosed.h>
|
||||
|
@ -22,21 +22,21 @@ class Supports final : public RefCounted<Supports> {
|
|||
|
||||
public:
|
||||
struct Declaration {
|
||||
String declaration;
|
||||
DeprecatedString declaration;
|
||||
bool evaluate() const;
|
||||
String to_string() const;
|
||||
DeprecatedString to_string() const;
|
||||
};
|
||||
|
||||
struct Selector {
|
||||
String selector;
|
||||
DeprecatedString selector;
|
||||
bool evaluate() const;
|
||||
String to_string() const;
|
||||
DeprecatedString to_string() const;
|
||||
};
|
||||
|
||||
struct Feature {
|
||||
Variant<Declaration, Selector> value;
|
||||
bool evaluate() const;
|
||||
String to_string() const;
|
||||
DeprecatedString to_string() const;
|
||||
};
|
||||
|
||||
struct Condition;
|
||||
|
@ -44,7 +44,7 @@ public:
|
|||
Variant<NonnullOwnPtr<Condition>, Feature, GeneralEnclosed> value;
|
||||
|
||||
bool evaluate() const;
|
||||
String to_string() const;
|
||||
DeprecatedString to_string() const;
|
||||
};
|
||||
|
||||
struct Condition {
|
||||
|
@ -57,7 +57,7 @@ public:
|
|||
Vector<InParens> children;
|
||||
|
||||
bool evaluate() const;
|
||||
String to_string() const;
|
||||
DeprecatedString to_string() const;
|
||||
};
|
||||
|
||||
static NonnullRefPtr<Supports> create(NonnullOwnPtr<Condition>&& condition)
|
||||
|
@ -66,7 +66,7 @@ public:
|
|||
}
|
||||
|
||||
bool matches() const { return m_matches; }
|
||||
String to_string() const;
|
||||
DeprecatedString to_string() const;
|
||||
|
||||
private:
|
||||
Supports(NonnullOwnPtr<Condition>&&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue