mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:07:36 +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
|
@ -8,11 +8,11 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/DeprecatedString.h>
|
||||
#include <AK/Noncopyable.h>
|
||||
#include <AK/NonnullOwnPtrVector.h>
|
||||
#include <AK/OwnPtr.h>
|
||||
#include <AK/RecursionDecision.h>
|
||||
#include <AK/String.h>
|
||||
#include <LibMarkdown/Forward.h>
|
||||
|
||||
namespace Markdown {
|
||||
|
@ -71,7 +71,7 @@ public:
|
|||
|
||||
class TextNode : public Node {
|
||||
public:
|
||||
String text;
|
||||
DeprecatedString text;
|
||||
bool collapsible;
|
||||
|
||||
TextNode(StringView text)
|
||||
|
@ -96,11 +96,11 @@ public:
|
|||
public:
|
||||
bool is_image;
|
||||
NonnullOwnPtr<Node> text;
|
||||
String href;
|
||||
DeprecatedString href;
|
||||
Optional<int> image_width;
|
||||
Optional<int> image_height;
|
||||
|
||||
LinkNode(bool is_image, NonnullOwnPtr<Node> text, String href, Optional<int> image_width, Optional<int> image_height)
|
||||
LinkNode(bool is_image, NonnullOwnPtr<Node> text, DeprecatedString href, Optional<int> image_width, Optional<int> image_height)
|
||||
: is_image(is_image)
|
||||
, text(move(text))
|
||||
, href(move(href))
|
||||
|
@ -146,15 +146,15 @@ public:
|
|||
|
||||
size_t terminal_length() const;
|
||||
|
||||
String render_to_html() const;
|
||||
String render_for_terminal() const;
|
||||
DeprecatedString render_to_html() const;
|
||||
DeprecatedString render_for_terminal() const;
|
||||
RecursionDecision walk(Visitor&) const;
|
||||
|
||||
static Text parse(StringView);
|
||||
|
||||
private:
|
||||
struct Token {
|
||||
String data;
|
||||
DeprecatedString data;
|
||||
// Flanking basically means that a delimiter run has a non-whitespace,
|
||||
// non-punctuation character on the corresponding side. For a more exact
|
||||
// definition, see the CommonMark spec.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue