mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:07: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:
parent
6e19ab2bbc
commit
57dc179b1f
597 changed files with 1973 additions and 1972 deletions
|
@ -38,7 +38,7 @@ DeprecatedString url_encode(Vector<QueryParam> const& pairs, AK::URL::PercentEnc
|
|||
if (i != pairs.size() - 1)
|
||||
builder.append('&');
|
||||
}
|
||||
return builder.to_string();
|
||||
return builder.to_deprecated_string();
|
||||
}
|
||||
|
||||
Vector<QueryParam> url_decode(StringView input)
|
||||
|
@ -156,7 +156,7 @@ void URLSearchParams::update()
|
|||
if (!m_url)
|
||||
return;
|
||||
// 2. Let serializedQuery be the serialization of query’s list.
|
||||
auto serialized_query = to_string();
|
||||
auto serialized_query = to_deprecated_string();
|
||||
// 3. If serializedQuery is the empty string, then set serializedQuery to null.
|
||||
if (serialized_query.is_empty())
|
||||
serialized_query = {};
|
||||
|
@ -255,7 +255,7 @@ void URLSearchParams::sort()
|
|||
update();
|
||||
}
|
||||
|
||||
DeprecatedString URLSearchParams::to_string() const
|
||||
DeprecatedString URLSearchParams::to_deprecated_string() const
|
||||
{
|
||||
// return the serialization of this’s list.
|
||||
return url_encode(m_list, AK::URL::PercentEncodeSet::ApplicationXWWWFormUrlencoded);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue