WebURL Documentation Beta

Typealias Lazily​Percent​Decoded​UTF8

@available(*, deprecated, renamed: "LazilyPercentDecodedWithSubstitutions")
public typealias LazilyPercentDecodedUTF8<Source, Subs> = LazilyPercentDecodedWithSubstitutions<Source, Subs>
where Source: Collection, Source.Element == UInt8, Subs: SubstitutionMap

A Collection which percent-decodes elements from its Source on-demand, and reverses substitutions made by a SubstitutionMap.

Percent-decoding transforms certain ASCII sequences to bytes ("%AB" to the byte value 171, or 0xAB), Some encodings (e.g. form encoding) apply substitutions in addition to percent-encoding; provide the appropriate SubstitutionMap to accurately decode content encoded with substitutions.