summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibXML/Parser/Parser.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-12-06 01:12:49 +0000
committerAndreas Kling <kling@serenityos.org>2022-12-06 08:54:33 +0100
commit57dc179b1fce5d4b7171311b04667debfe693095 (patch)
treea459d1aef92dc4e49bbf03b32621b1e7e30d4e64 /Userland/Libraries/LibXML/Parser/Parser.cpp
parent6e19ab2bbce0b113b628e6f8e9b5c0640053933e (diff)
downloadserenity-57dc179b1fce5d4b7171311b04667debfe693095.zip
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.
Diffstat (limited to 'Userland/Libraries/LibXML/Parser/Parser.cpp')
-rw-r--r--Userland/Libraries/LibXML/Parser/Parser.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibXML/Parser/Parser.cpp b/Userland/Libraries/LibXML/Parser/Parser.cpp
index 1091f015c4..7fa6a81f2b 100644
--- a/Userland/Libraries/LibXML/Parser/Parser.cpp
+++ b/Userland/Libraries/LibXML/Parser/Parser.cpp
@@ -547,7 +547,7 @@ ErrorOr<Name, ParseError> Parser::parse_name()
builder.append(rest);
rollback.disarm();
- return builder.to_string();
+ return builder.to_deprecated_string();
}
// 2.8.28. doctypedecl, https://www.w3.org/TR/2006/REC-xml11-20060816/#NT-doctypedecl
@@ -732,7 +732,7 @@ ErrorOr<DeprecatedString, ParseError> Parser::parse_attribute_value_inner(String
builder.append(m_lexer.consume());
}
}
- return builder.to_string();
+ return builder.to_deprecated_string();
}
// Char ::= [#x1-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]
@@ -781,7 +781,7 @@ ErrorOr<Variant<Parser::EntityReference, DeprecatedString>, ParseError> Parser::
builder.append_code_point(*code_point);
rollback.disarm();
- return builder.to_string();
+ return builder.to_deprecated_string();
}
auto name = name_result.release_value();
@@ -1637,7 +1637,7 @@ ErrorOr<DeprecatedString, ParseError> Parser::parse_entity_value()
TRY(expect(quote));
rollback.disarm();
- return builder.to_string();
+ return builder.to_deprecated_string();
}
// 2.7.18 CDSect, https://www.w3.org/TR/2006/REC-xml11-20060816/#NT-CDSect