RegexBuilder
You’re reading documentation from an older version of Swift 6.1.
A module with the same name as this one exists in the latest stable release of Swift 6.1.
import RegexBuilderModule information
- Declarations
- 517
- Symbols
- 530
You’re reading documentation from an older version of Swift 6.1.
A module with the same name as this one exists in the latest stable release of Swift 6.1.
import RegexBuilderfunc ... (lhs: Character, rhs: Character) -> CharacterClass Returns a character class that includes the characters in the given range.
func ... (lhs: UnicodeScalar, rhs: UnicodeScalar) -> CharacterClass Returns a character class that includes the Unicode scalars in the given range.
@resultBuilder struct AlternationBuilderA custom parameter attribute that constructs regular expression alternations from closures.
struct AnchorA regex component that matches a specific condition at a particular position in an input string.
struct Capture<Output>A regex component that saves the matched substring, or a transformed result, for access in a regex match.
struct CharacterClassA class of characters that match in a regex.
struct ChoiceOf<Output>A regex component that chooses exactly one of its constituent regex components when matching.
struct Local<Output>A regex component that represents an atomic group.
struct Lookahead<Output>A regex component that allows a match to continue only if its contents match at the given location.
struct NegativeLookahead<Output>A regex component that allows a match to continue only if its contents do not match at the given location.
struct One<Output>A regex component that matches exactly one occurrence of its underlying component.
struct OneOrMore<Output>A regex component that matches one or more occurrences of its underlying component.
struct Optionally<Output>A regex component that matches zero or one occurrences of its underlying component.
struct Reference<Capture>A reference to a captured portion of a regular expression.
@resultBuilder enum RegexComponentBuilderA custom parameter attribute that constructs regular expressions from closures.
struct Repeat<Output>A regex component that matches a selectable number of occurrences of its underlying component.
struct TryCapture<Output>A regex component that attempts to transform a matched substring, saving the result if successful and backtracking if the transformation fails.
struct ZeroOrMore<Output>A regex component that matches zero or more occurrences of its underlying component.
import Cxximport Dispatchimport DispatchIntrospectionimport Distributedimport Foundationimport FoundationEssentialsimport FoundationInternationalizationimport FoundationNetworkingimport FoundationXMLimport Swiftimport Synchronizationimport XCTestimport _Concurrencyimport _Differentiationimport _RegexParserimport _StringProcessing