Enumeration

Unicode.NumericType

The numeric type of a scalar.

Declaration

enum NumericType

Overview

Scalars with a non-nil numeric type include numbers, fractions, numeric superscripts and subscripts, and circled or otherwise decorated number glyphs.

Some letterlike scalars used in numeric systems, such as Greek or Latin letters, do not have a non-nil numeric type, in order to prevent programs from incorrectly interpreting them as numbers in non-numeric contexts.

Topics

Enumeration Cases

case decimal

A digit that is commonly understood to form base-10 numbers.

case digit

A digit that does not meet the requirements of the decimal numeric type.

case numeric

A digit that does not meet the requirements of the decimal numeric type or a non-digit numeric value.

Instance Properties

var hashValue: Int

The hash value.

Instance Methods

func hash(into: inout Hasher)

Hashes the essential components of this value by feeding them into the given hasher.

Operator Functions

static func != (Unicode.NumericType, Unicode.NumericType) -> Bool

Returns a Boolean value indicating whether two values are not equal.

static func == (Unicode.NumericType, Unicode.NumericType) -> Bool

Returns a Boolean value indicating whether two values are equal.

See Also

Unicode Scalar Classifications

enum Unicode.GeneralCategory

The most general classification of a Unicode scalar.

struct Unicode.CanonicalCombiningClass

The classification of a scalar used in the Canonical Ordering Algorithm defined by the Unicode Standard.