String

extension String
  • Percent escaped URL Safe string that can be used in an URL query as specified in RFC 3986

    This percent-escapes all characters besides the alphanumeric character set and “-”, “.”, “_”, and “~”.

    http://www.ietf.org/rfc/rfc3986.txt

    :returns: Returns URL safe percent-escaped string.

    Declaration

    Swift

    public func urlPercentEscapedString() -> String?