mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +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
|
@ -18,7 +18,7 @@ static FlyString s_html_namespace = "http://www.w3.org/1999/xhtml";
|
|||
|
||||
namespace Web {
|
||||
|
||||
ErrorOr<String> resolve_xml_resource(XML::SystemID const&, Optional<XML::PublicID> const& public_id)
|
||||
ErrorOr<DeprecatedString> resolve_xml_resource(XML::SystemID const&, Optional<XML::PublicID> const& public_id)
|
||||
{
|
||||
if (!public_id.has_value())
|
||||
return Error::from_string_literal("Refusing to load disallowed external entity");
|
||||
|
@ -46,12 +46,12 @@ XMLDocumentBuilder::XMLDocumentBuilder(DOM::Document& document, XMLScriptingSupp
|
|||
{
|
||||
}
|
||||
|
||||
void XMLDocumentBuilder::set_source(String source)
|
||||
void XMLDocumentBuilder::set_source(DeprecatedString source)
|
||||
{
|
||||
m_document.set_source(move(source));
|
||||
}
|
||||
|
||||
void XMLDocumentBuilder::element_start(const XML::Name& name, HashMap<XML::Name, String> const& attributes)
|
||||
void XMLDocumentBuilder::element_start(const XML::Name& name, HashMap<XML::Name, DeprecatedString> const& attributes)
|
||||
{
|
||||
if (m_has_error)
|
||||
return;
|
||||
|
@ -123,7 +123,7 @@ void XMLDocumentBuilder::element_end(const XML::Name& name)
|
|||
m_current_node = m_current_node->parent_node();
|
||||
}
|
||||
|
||||
void XMLDocumentBuilder::text(String const& data)
|
||||
void XMLDocumentBuilder::text(DeprecatedString const& data)
|
||||
{
|
||||
if (m_has_error)
|
||||
return;
|
||||
|
@ -140,7 +140,7 @@ void XMLDocumentBuilder::text(String const& data)
|
|||
}
|
||||
}
|
||||
|
||||
void XMLDocumentBuilder::comment(String const& data)
|
||||
void XMLDocumentBuilder::comment(DeprecatedString const& data)
|
||||
{
|
||||
if (m_has_error)
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue