File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
Sources/_MatchingEngine/Regex/Parse Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -186,12 +186,21 @@ public let currentRegexLiteralFormatVersion: CUnsignedInt = 1
186
186
187
187
/// Interface for libswift.
188
188
///
189
- /// Parse a regex string from `inputPtr`, which should be null-terminated
190
- /// C-string. `errOut` will be set if an error was encountered.
189
+ /// - Parameters:
190
+ /// - inputPtr: A null-terminated C string.
191
+ /// - errOut: A buffer accepting an error string upon error.
192
+ /// - versionOut: A buffer accepting a regex literal format
193
+ /// version.
194
+ /// - captureStructureOut: A buffer accepting a byte sequence representing the
195
+ /// capture structure.
196
+ /// - captureStructureSize: The size of the capture structure buffer. Must be
197
+ /// greater than or equal to `strlen(inputPtr)`.
191
198
func libswiftParseRegexLiteral(
192
199
_ inputPtr: UnsafePointer < CChar > ? ,
193
200
_ errOut: UnsafeMutablePointer < UnsafePointer < CChar > ? > ? ,
194
- _ versionOut: UnsafeMutablePointer < CUnsignedInt > ?
201
+ _ versionOut: UnsafeMutablePointer < CUnsignedInt > ? ,
202
+ _ captureStructureOut: UnsafeMutablePointer < Int8 > ? ,
203
+ _ captureStructureSize: CUnsignedInt
195
204
) {
196
205
guard let s = inputPtr else { fatalError ( " Expected input param " ) }
197
206
guard let errOut = errOut else { fatalError ( " Expected error out param " ) }
You can’t perform that action at this time.
0 commit comments