1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:17:46 +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:
Linus Groh 2022-12-04 18:02:33 +00:00 committed by Andreas Kling
parent f74251606d
commit 6e19ab2bbc
2006 changed files with 11635 additions and 11636 deletions

View file

@ -7,7 +7,7 @@
#pragma once
#include <AK/String.h>
#include <AK/DeprecatedString.h>
#include <AK/Vector.h>
#include <LibGfx/Point.h>

View file

@ -17,7 +17,7 @@ SVGCircleElement::SVGCircleElement(DOM::Document& document, DOM::QualifiedName q
set_prototype(&Bindings::cached_web_prototype(realm(), "SVGCircleElement"));
}
void SVGCircleElement::parse_attribute(FlyString const& name, String const& value)
void SVGCircleElement::parse_attribute(FlyString const& name, DeprecatedString const& value)
{
SVGGeometryElement::parse_attribute(name, value);

View file

@ -17,7 +17,7 @@ class SVGCircleElement final : public SVGGeometryElement {
public:
virtual ~SVGCircleElement() override = default;
virtual void parse_attribute(FlyString const& name, String const& value) override;
virtual void parse_attribute(FlyString const& name, DeprecatedString const& value) override;
virtual Gfx::Path& get_path() override;

View file

@ -17,7 +17,7 @@ SVGEllipseElement::SVGEllipseElement(DOM::Document& document, DOM::QualifiedName
set_prototype(&Bindings::cached_web_prototype(realm(), "SVGEllipseElement"));
}
void SVGEllipseElement::parse_attribute(FlyString const& name, String const& value)
void SVGEllipseElement::parse_attribute(FlyString const& name, DeprecatedString const& value)
{
SVGGeometryElement::parse_attribute(name, value);

View file

@ -17,7 +17,7 @@ class SVGEllipseElement final : public SVGGeometryElement {
public:
virtual ~SVGEllipseElement() override = default;
virtual void parse_attribute(FlyString const& name, String const& value) override;
virtual void parse_attribute(FlyString const& name, DeprecatedString const& value) override;
virtual Gfx::Path& get_path() override;

View file

@ -17,7 +17,7 @@ SVGLineElement::SVGLineElement(DOM::Document& document, DOM::QualifiedName quali
set_prototype(&Bindings::cached_web_prototype(realm(), "SVGLineElement"));
}
void SVGLineElement::parse_attribute(FlyString const& name, String const& value)
void SVGLineElement::parse_attribute(FlyString const& name, DeprecatedString const& value)
{
SVGGeometryElement::parse_attribute(name, value);

View file

@ -17,7 +17,7 @@ class SVGLineElement final : public SVGGeometryElement {
public:
virtual ~SVGLineElement() override = default;
virtual void parse_attribute(FlyString const& name, String const& value) override;
virtual void parse_attribute(FlyString const& name, DeprecatedString const& value) override;
virtual Gfx::Path& get_path() override;

View file

@ -89,7 +89,7 @@ SVGPathElement::SVGPathElement(DOM::Document& document, DOM::QualifiedName quali
set_prototype(&Bindings::cached_web_prototype(realm(), "SVGPathElement"));
}
void SVGPathElement::parse_attribute(FlyString const& name, String const& value)
void SVGPathElement::parse_attribute(FlyString const& name, DeprecatedString const& value)
{
SVGGeometryElement::parse_attribute(name, value);

View file

@ -19,7 +19,7 @@ class SVGPathElement final : public SVGGeometryElement {
public:
virtual ~SVGPathElement() override = default;
virtual void parse_attribute(FlyString const& name, String const& value) override;
virtual void parse_attribute(FlyString const& name, DeprecatedString const& value) override;
virtual Gfx::Path& get_path() override;

View file

@ -17,7 +17,7 @@ SVGPolygonElement::SVGPolygonElement(DOM::Document& document, DOM::QualifiedName
set_prototype(&Bindings::cached_web_prototype(realm(), "SVGPolygonElement"));
}
void SVGPolygonElement::parse_attribute(FlyString const& name, String const& value)
void SVGPolygonElement::parse_attribute(FlyString const& name, DeprecatedString const& value)
{
SVGGeometryElement::parse_attribute(name, value);

View file

@ -16,7 +16,7 @@ class SVGPolygonElement final : public SVGGeometryElement {
public:
virtual ~SVGPolygonElement() override = default;
virtual void parse_attribute(FlyString const& name, String const& value) override;
virtual void parse_attribute(FlyString const& name, DeprecatedString const& value) override;
virtual Gfx::Path& get_path() override;

View file

@ -17,7 +17,7 @@ SVGPolylineElement::SVGPolylineElement(DOM::Document& document, DOM::QualifiedNa
set_prototype(&Bindings::cached_web_prototype(realm(), "SVGPolylineElement"));
}
void SVGPolylineElement::parse_attribute(FlyString const& name, String const& value)
void SVGPolylineElement::parse_attribute(FlyString const& name, DeprecatedString const& value)
{
SVGGeometryElement::parse_attribute(name, value);

View file

@ -16,7 +16,7 @@ class SVGPolylineElement final : public SVGGeometryElement {
public:
virtual ~SVGPolylineElement() override = default;
virtual void parse_attribute(FlyString const& name, String const& value) override;
virtual void parse_attribute(FlyString const& name, DeprecatedString const& value) override;
virtual Gfx::Path& get_path() override;

View file

@ -19,7 +19,7 @@ SVGRectElement::SVGRectElement(DOM::Document& document, DOM::QualifiedName quali
set_prototype(&Bindings::cached_web_prototype(realm(), "SVGRectElement"));
}
void SVGRectElement::parse_attribute(FlyString const& name, String const& value)
void SVGRectElement::parse_attribute(FlyString const& name, DeprecatedString const& value)
{
SVGGeometryElement::parse_attribute(name, value);

View file

@ -17,7 +17,7 @@ class SVGRectElement final : public SVGGeometryElement {
public:
virtual ~SVGRectElement() override = default;
virtual void parse_attribute(FlyString const& name, String const& value) override;
virtual void parse_attribute(FlyString const& name, DeprecatedString const& value) override;
virtual Gfx::Path& get_path() override;

View file

@ -52,7 +52,7 @@ void SVGSVGElement::apply_presentational_hints(CSS::StyleProperties& style) cons
}
}
void SVGSVGElement::parse_attribute(FlyString const& name, String const& value)
void SVGSVGElement::parse_attribute(FlyString const& name, DeprecatedString const& value)
{
SVGGraphicsElement::parse_attribute(name, value);

View file

@ -30,7 +30,7 @@ private:
virtual bool is_svg_svg_element() const override { return true; }
virtual void parse_attribute(FlyString const& name, String const& value) override;
virtual void parse_attribute(FlyString const& name, DeprecatedString const& value) override;
Optional<ViewBox> m_view_box;
};