import std.array : appender;
auto w = appender!string();
pctNormalizeTo("%7e%2f", Component.Path, w);
assert(w.data == "~%2F");pctNormalizeTo
Write normalized percent-encoding of s for component comp to dst.
Decodes percent-encoded triplets that map to unreserved characters and uppercases hex digits in remaining percent-encoded octets. Does not validate or decode sequences that would introduce reserved characters that are not allowed by the comp context.
Parameters
s | Component string that may contain percent-escapes. |
comp | URI component context. |
dst | Output range that receives the normalized bytes. |