Initializerswift 6.0.1Swift
init(_:)
init?(_ description: String)
Other members in extension
Types
struct Properties
A value that provides access to properties of a Unicode scalar that are defined by the Unicode standard.
struct UTF16View
struct UTF8View
Type members
init(Unicode.Scalar
) Creates a duplicate of the given Unicode scalar.
init?(Int
) Creates a Unicode scalar with the specified numeric value.
init?(UInt16
) Creates a Unicode scalar with the specified numeric value.
init?(UInt32
) Creates a Unicode scalar with the specified numeric value.
init(UInt8
) Creates a Unicode scalar with the specified numeric value.
init(unicodeScalarLiteral: Unicode.Scalar
) Creates a Unicode scalar with the specified value.
static func < (lhs: Unicode.Scalar, rhs: Unicode.Scalar
) -> Bool static func == (lhs: Unicode.Scalar, rhs: Unicode.Scalar
) -> Bool
Instance members
var customMirror: Mirror
A mirror that reflects the
Unicode.Scalar
instance.var debugDescription: String
An escaped textual representation of the Unicode scalar, suitable for debugging.
var description: String
A textual representation of the Unicode scalar.
var isASCII: Bool
A Boolean value indicating whether the Unicode scalar is an ASCII character.
var properties: Unicode.Scalar.Properties
Properties of this scalar defined by the Unicode standard.
var utf16: Unicode.Scalar.UTF16View
var utf8: Unicode.Scalar.UTF8View
var value: UInt32
A numeric representation of the Unicode scalar.
func escaped(asASCII: Bool
) -> String Returns a string representation of the Unicode scalar.
func hash(into: inout Hasher
) Hashes the essential components of this value by feeding them into the given hasher.
func write<Target>(to: inout Target
) Writes the textual representation of the Unicode scalar into the given output stream.
Show obsolete interfaces (1)
Hide obsolete interfaces
var customPlaygroundQuickLook: _PlaygroundQuickLook
A custom playground Quick Look for the
Unicode.Scalar
instance.