1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 17:27:35 +00:00

Everywhere: Rename to_{string => deprecated_string}() where applicable

This will make it easier to support both string types at the same time
while we convert code, and tracking down remaining uses.

One big exception is Value::to_string() in LibJS, where the name is
dictated by the ToString AO.
This commit is contained in:
Linus Groh 2022-12-06 01:12:49 +00:00 committed by Andreas Kling
parent 6e19ab2bbc
commit 57dc179b1f
597 changed files with 1973 additions and 1972 deletions

View file

@ -32,7 +32,7 @@ public:
void set_string(DeprecatedString string) { m_string = move(string); }
char const* type_name() const override { return "string"; }
DeprecatedString to_string(int indent) const override;
DeprecatedString to_deprecated_string(int indent) const override;
protected:
bool is_string() const override { return true; }
@ -54,7 +54,7 @@ public:
[[nodiscard]] ALWAYS_INLINE FlyString const& name() const { return m_name; }
char const* type_name() const override { return "name"; }
DeprecatedString to_string(int indent) const override;
DeprecatedString to_deprecated_string(int indent) const override;
protected:
bool is_name() const override { return true; }
@ -90,7 +90,7 @@ public:
{
return "array";
}
DeprecatedString to_string(int indent) const override;
DeprecatedString to_deprecated_string(int indent) const override;
protected:
bool is_array() const override { return true; }
@ -136,7 +136,7 @@ public:
{
return "dict";
}
DeprecatedString to_string(int indent) const override;
DeprecatedString to_deprecated_string(int indent) const override;
protected:
bool is_dict() const override { return true; }
@ -160,7 +160,7 @@ public:
[[nodiscard]] ByteBuffer& buffer() { return m_buffer; };
char const* type_name() const override { return "stream"; }
DeprecatedString to_string(int indent) const override;
DeprecatedString to_deprecated_string(int indent) const override;
private:
bool is_stream() const override { return true; }
@ -184,7 +184,7 @@ public:
[[nodiscard]] ALWAYS_INLINE Value const& value() const { return m_value; }
char const* type_name() const override { return "indirect_object"; }
DeprecatedString to_string(int indent) const override;
DeprecatedString to_deprecated_string(int indent) const override;
protected:
bool is_indirect_value() const override { return true; }