Structure_StringProcessing5.9.0
RegexSemanticLevel
A semantic level to use during regex matching.
- iOS
- 16.0+
- macOS
- 13.0+
- tvOS
- 16.0+
- watchOS
- 9.0+
struct RegexSemanticLevel
The semantic level determines whether a regex matches with the same character-based semantics as string comparisons or by matching individual Unicode scalar values. See Regex.matchingSemantics(_:)
for more about changing the semantic level for all or part of a regex.
Citizens in _StringProcessing
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.
Members
static var graphemeCluster: RegexSemanticLevel
Match at the character level.
static var unicodeScalar: RegexSemanticLevel
Match at the Unicode scalar level.