Instance Property

removingPercentEncoding

Returns a new string made from the receiver by replacing all percent encoded sequences with the matching UTF-8 characters.

Declaration

var removingPercentEncoding: String? { get }

Return Value

A new string with the percent-encoded sequences removed, or nil if the receiver contains an invalid percent-encoding sequence.

See Also

Related Symbols

func addingPercentEncoding(withAllowedCharacters: CharacterSet)

Returns a new string made from the receiver by replacing all characters not in the specified set with percent-encoded characters.

func replacingPercentEscapes(using: UInt)

Returns a new string made by replacing in the receiver all percent escapes with the matching characters as determined by a given encoding.

func addingPercentEscapes(using: UInt)

Returns a representation of the receiver using a given encoding to determine the percent escapes necessary to convert the receiver into a legal URL string.