CharacterSet

extension CharacterSet

Extensions to CharacterSet

  • Returns an CharacterSet comprised of the Unicode characters for currency symbols, as specified in:

    http://unicode.org/charts/PDF/U20A0.pdf
    

    which, at the time of this writing, is based upon The Unicode Standard version 8.0.

    According to that specification, the currency symbols fall in the range: 20A0–20CF, along with a handful of other symbols in other blocks.

    Declaration

    Swift

    public static var currencySymbols: CharacterSet { get }

    Return Value

    An CharacterSet of currency symbols

  • Creates a CharacterSet initialized to the given string value.

    Declaration

    Swift

    public init(stringLiteral value: StringLiteralType)
  • Creates a CharacterSet initialized to the given value.

    Declaration

    Swift

    public init(extendedGraphemeClusterLiteral value: StringLiteralType)
  • Creates a CharacterSet initialized to the given value.

    Declaration

    Swift

    public init(unicodeScalarLiteral value: StringLiteralType)