Enumerationswift 6.0.1_RegexParser
Kind
enum Kind
Cases
case age(major: Int, minor: Int)
Character age, as per UnicodeScalar.Properties.age.
case any
Matches any character, equivalent to Oniguruma’s ‘\O’.
case ascii
All ascii characters U+00…U+7F
case assigned
case binary(Unicode.BinaryProperty, value: Bool)
Binary character properties. Note that only the following are required by UTS#18 Level 1:
case block(Unicode.Block)
A block property.
case ccc(Unicode.CanonicalCombiningClass)
Canonical Combining Class.
case generalCategory(Unicode.ExtendedGeneralCategory)
A general category property.
case invalid(key: String?, value: String)
An invalid property that has been diagnosed by the parser.
case javaSpecial(AST.Atom.CharacterProperty.JavaSpecial)
Some special properties implemented by Java.
case mapping(AST.Atom.CharacterProperty.Kind.MapKind, String)
Case mapping.
case named(String)
Character name in the form
\p{name=...}
case numericType(Unicode.NumericType)
Numeric type.
case numericValue(Double)
Numeric value.
case pcreSpecial(AST.Atom.CharacterProperty.PCRESpecialCategory)
Some special properties implemented by PCRE and Oniguruma.
case posix(Unicode.POSIXProperty)
case script(Unicode.Script)
Character script and script extensions.
case scriptExtension(Unicode.Script)
Other members in extension
Types
enum JavaSpecial
Special Java properties that correspond to methods on
java.lang.Character
, with thejava
prefix replaced byis
.enum PCRESpecialCategory
Type members
Instance members
var isInverted: Bool
Whether this is an inverted property e.g ‘\P{Ll}’, ‘[:^ascii:]’.
var isPOSIX: Bool
Whether this property was written using POSIX syntax e.g ‘[:ascii:]’.
var kind: AST.Atom.CharacterProperty.Kind
Citizens in _RegexParser
Conformances
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.
Types
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.