-
Notifications
You must be signed in to change notification settings - Fork 1
Capture
kareman edited this page Aug 13, 2020
·
4 revisions
Captures the current position as a range.
public struct Capture<Wrapped: Pattern>: Pattern
It can be retrieved in Parser.Match.captures
or used for decoding into Decodables.
public typealias Input = Wrapped.Input
Captures the position of wrapped
as a range.
@inlinable public init(name: String? = nil, _ wrapped: Wrapped)
- name: - name: optional name
Captures the current input position as an empty range.
@inlinable public init<Input>(name: String? = nil) where Wrapped == NoPattern<Input>
- name: - name: optional name
Captures the current input position as an empty range.
@inlinable public init(name: String? = nil) where Wrapped == NoPattern<String>
- name: - name: optional name
Captures the position of wrapped
as a range.
@inlinable public init<Input>(name: String? = nil, _ wrapped: Literal<Input>) where Wrapped == Literal<Input>
- name: - name: optional name
var description: String
let name: String?
let wrapped: Wrapped
@inlinable public func createInstructions(_ instructions: inout ContiguousArray<Instruction<Input>>) throws
Generated at 2020-08-23T12:56:49+0000 using swift-doc 1.0.0-beta.3.