Structureswift 6.0.1_RegexParser
CharacterProperty
struct CharacterProperty
struct CharacterProperty
import _RegexParser
struct Atom
struct AST
A regex abstract syntax tree.
init(_ k: AST.Atom.Kind, _ loc: SourceLocation)
var isQuantifiable: Bool { get }
var isValidCharacterClassRangeBound: Bool { get }
Whether this atom is valid as the operand of a custom character class range.
let kind: AST.Atom.Kind
var literalCharacterValue: Character? { get }
Retrieves the character value of the atom.
var literalStringValue: String? { get }
A string literal representation of the atom, if possible.
let location: SourceLocation
struct BacktrackingDirective
enum Callout
enum EscapedBuiltin
enum Kind
struct Number
struct Scalar
struct ScalarSequence
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
init(_ kind: AST.Atom.CharacterProperty.Kind, isInverted: Bool, isPOSIX: Bool)
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
enum JavaSpecial
Special Java properties that correspond to methods on java.lang.Character
, with the java
prefix replaced by is
.
enum Kind
enum PCRESpecialCategory
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.