1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:24:57 +00:00

AK: Expose URLParser::percent_encode_after_encoding

This function is useful in places outside of the URLParser in LibWeb.
This commit is contained in:
Shannon Booth 2023-06-25 14:11:34 +12:00 committed by Andreas Kling
parent c445bd3a0c
commit be9fcaf92d
2 changed files with 4 additions and 1 deletions

View file

@ -117,7 +117,7 @@ constexpr bool is_double_dot_path_segment(StringView input)
}
// https://url.spec.whatwg.org/#string-percent-encode-after-encoding
static DeprecatedString percent_encode_after_encoding(StringView input, URL::PercentEncodeSet percent_encode_set, bool space_as_plus = false)
DeprecatedString URLParser::percent_encode_after_encoding(StringView input, URL::PercentEncodeSet percent_encode_set, bool space_as_plus)
{
// NOTE: This is written somewhat ad-hoc since we don't yet implement the Encoding spec.