// swift-interface-format-version: 1.0 // swift-compiler-version: Apple Swift version 6.3 effective-5.10 (swiftlang-6.3.0.123.4 clang-2100.0.123.2) // swift-module-flags: -target arm64e-apple-macosx26.4 -target-variant arm64e-apple-ios26.4-macabi -enable-objc-interop -enable-library-evolution -module-link-name swift_StringProcessing -swift-version 5 -O -library-level api -enforce-exclusivity=unchecked -target-min-inlining-version min -enable-experimental-feature NoncopyableGenerics2 -enable-experimental-feature SuppressedAssociatedTypes -enable-experimental-feature SE427NoInferenceOnExtension -enable-experimental-feature NonescapableTypes -enable-experimental-feature LifetimeDependence -enable-experimental-feature InoutLifetimeDependence -enable-experimental-feature LifetimeDependenceMutableAccessors -enable-upcoming-feature MemberImportVisibility -user-module-version 6.3.0.123.11 -module-name _StringProcessing // swift-module-flags-ignorable: -enable-lexical-lifetimes=false -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3 import Swift extension Swift.Collection where Self.Element : Swift.Equatable { @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) @_disfavoredOverload public func contains(_ other: C) -> Swift.Bool where C : Swift.Collection, Self.Element == C.Element } extension Swift.StringProtocol { @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) @_disfavoredOverload public func contains(_ other: Swift.String) -> Swift.Bool @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) @_disfavoredOverload public func contains(_ other: Swift.Substring) -> Swift.Bool } extension Swift.BidirectionalCollection where Self.SubSequence == Swift.Substring { @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) @_disfavoredOverload public func contains(_ regex: some RegexComponent) -> Swift.Bool } extension Swift.Collection where Self.Element : Swift.Equatable { @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public func firstRange(of other: C) -> Swift.Range? where C : Swift.Collection, Self.Element == C.Element } extension Swift.BidirectionalCollection where Self.Element : Swift.Comparable { @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public func firstRange(of other: C) -> Swift.Range? where C : Swift.Collection, Self.Element == C.Element } extension Swift.BidirectionalCollection where Self.SubSequence == Swift.Substring { @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) @_disfavoredOverload public func firstRange(of regex: some RegexComponent) -> Swift.Range? } extension Swift.Collection where Self.Element : Swift.Equatable { @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public func ranges(of other: C) -> [Swift.Range] where C : Swift.Collection, Self.Element == C.Element } extension Swift.BidirectionalCollection where Self.SubSequence == Swift.Substring { @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) @_disfavoredOverload public func ranges(of regex: some RegexComponent) -> [Swift.Range] } extension Swift.RangeReplaceableCollection where Self.Element : Swift.Equatable { @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public func replacing(_ other: C, with replacement: Replacement, subrange: Swift.Range, maxReplacements: Swift.Int = .max) -> Self where C : Swift.Collection, Replacement : Swift.Collection, Self.Element == C.Element, C.Element == Replacement.Element @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public func replacing(_ other: C, with replacement: Replacement, maxReplacements: Swift.Int = .max) -> Self where C : Swift.Collection, Replacement : Swift.Collection, Self.Element == C.Element, C.Element == Replacement.Element @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public mutating func replace(_ other: C, with replacement: Replacement, maxReplacements: Swift.Int = .max) where C : Swift.Collection, Replacement : Swift.Collection, Self.Element == C.Element, C.Element == Replacement.Element } extension Swift.RangeReplaceableCollection where Self.SubSequence == Swift.Substring { @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public func replacing(_ regex: some RegexComponent, with replacement: Replacement, subrange: Swift.Range, maxReplacements: Swift.Int = .max) -> Self where Replacement : Swift.Collection, Replacement.Element == Swift.Character @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) @_disfavoredOverload public func replacing(_ regex: some RegexComponent, with replacement: Replacement, maxReplacements: Swift.Int = .max) -> Self where Replacement : Swift.Collection, Replacement.Element == Swift.Character @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public mutating func replace(_ regex: some RegexComponent, with replacement: Replacement, maxReplacements: Swift.Int = .max) where Replacement : Swift.Collection, Replacement.Element == Swift.Character } extension Swift.Collection where Self.Element : Swift.Equatable { @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) @_disfavoredOverload public func split(separator: C, maxSplits: Swift.Int = .max, omittingEmptySubsequences: Swift.Bool = true) -> [Self.SubSequence] where C : Swift.Collection, Self.Element == C.Element } @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) extension Swift.BidirectionalCollection where Self.SubSequence == Swift.Substring { @_disfavoredOverload public func split(separator: some RegexComponent, maxSplits: Swift.Int = .max, omittingEmptySubsequences: Swift.Bool = true) -> [Self.SubSequence] } @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) extension Swift.BidirectionalCollection where Self.SubSequence == Swift.Substring { public func starts(with regex: some RegexComponent) -> Swift.Bool } extension Swift.Collection { @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public func trimmingPrefix(while predicate: (Self.Element) throws -> Swift.Bool) rethrows -> Self.SubSequence } extension Swift.Collection where Self == Self.SubSequence { @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public mutating func trimPrefix(while predicate: (Self.Element) throws -> Swift.Bool) throws } extension Swift.RangeReplaceableCollection { @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) @_disfavoredOverload public mutating func trimPrefix(while predicate: (Self.Element) throws -> Swift.Bool) rethrows } extension Swift.Collection where Self.Element : Swift.Equatable { @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public func trimmingPrefix(_ prefix: Prefix) -> Self.SubSequence where Prefix : Swift.Sequence, Self.Element == Prefix.Element } extension Swift.Collection where Self == Self.SubSequence, Self.Element : Swift.Equatable { @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public mutating func trimPrefix(_ prefix: Prefix) where Prefix : Swift.Sequence, Self.Element == Prefix.Element } extension Swift.RangeReplaceableCollection where Self.Element : Swift.Equatable { @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public mutating func trimPrefix(_ prefix: Prefix) where Prefix : Swift.Sequence, Self.Element == Prefix.Element } extension Swift.BidirectionalCollection where Self.SubSequence == Swift.Substring { @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) @_disfavoredOverload public func trimmingPrefix(_ regex: some RegexComponent) -> Self.SubSequence } extension Swift.RangeReplaceableCollection where Self : Swift.BidirectionalCollection, Self.SubSequence == Swift.Substring { @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) @_disfavoredOverload public mutating func trimPrefix(_ regex: some RegexComponent) } extension Swift.BidirectionalCollection where Self.SubSequence == Swift.Substring { @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) @inlinable public func firstMatch(of r: some RegexComponent) -> _StringProcessing.Regex.Match? { let slice = self[...] return try? r.regex.firstMatch(in: slice) } } extension Swift.RangeReplaceableCollection where Self.SubSequence == Swift.Substring { @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public func replacing(_ regex: some RegexComponent, subrange: Swift.Range, maxReplacements: Swift.Int = .max, with replacement: (_StringProcessing.Regex.Match) throws -> Replacement) rethrows -> Self where Replacement : Swift.Collection, Replacement.Element == Swift.Character @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public func replacing(_ regex: some RegexComponent, maxReplacements: Swift.Int = .max, with replacement: (_StringProcessing.Regex.Match) throws -> Replacement) rethrows -> Self where Replacement : Swift.Collection, Replacement.Element == Swift.Character @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public mutating func replace(_ regex: some RegexComponent, maxReplacements: Swift.Int = .max, with replacement: (_StringProcessing.Regex.Match) throws -> Replacement) rethrows where Replacement : Swift.Collection, Replacement.Element == Swift.Character } extension Swift.BidirectionalCollection where Self.SubSequence == Swift.Substring { @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public func matches(of r: some RegexComponent) -> [_StringProcessing.Regex.Match] } @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) extension _StringProcessing.Regex { @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *) public var _literalPattern: Swift.String? { get } } @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public struct AnyRegexOutput { } @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) extension _StringProcessing.AnyRegexOutput { public init(_ match: _StringProcessing.Regex.Match) public func extractValues(as outputType: Output.Type = Output.self) -> Output? } @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) extension _StringProcessing.AnyRegexOutput : Swift.RandomAccessCollection { public struct Element { public var range: Swift.Range? { get } public var substring: Swift.Substring? { get } public var value: Any? { get } public var type: any Any.Type { get } public var name: Swift.String? { get } } public var startIndex: Swift.Int { get } public var endIndex: Swift.Int { get } public var count: Swift.Int { get } public func index(after i: Swift.Int) -> Swift.Int public func index(before i: Swift.Int) -> Swift.Int public subscript(position: Swift.Int) -> _StringProcessing.AnyRegexOutput.Element { get } @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *) public typealias Index = Swift.Int @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *) public typealias Indices = Swift.Range @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *) public typealias Iterator = Swift.IndexingIterator<_StringProcessing.AnyRegexOutput> @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *) public typealias SubSequence = Swift.Slice<_StringProcessing.AnyRegexOutput> } @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) extension _StringProcessing.AnyRegexOutput { public subscript(name: Swift.String) -> _StringProcessing.AnyRegexOutput.Element? { get } } @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) extension _StringProcessing.Regex.Match where Output == _StringProcessing.AnyRegexOutput { public subscript(dynamicMember _keyPath: Swift.KeyPath<(Swift.Substring, _doNotUse: ()), Swift.Substring>) -> Swift.Substring { get } public subscript(name: Swift.String) -> _StringProcessing.AnyRegexOutput.Element? { get } } @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) extension _StringProcessing.Regex where Output == _StringProcessing.AnyRegexOutput { public init(_ pattern: Swift.String) throws } @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) extension _StringProcessing.Regex { public init(_ pattern: Swift.String, as outputType: Output.Type = Output.self) throws public init(verbatim verbatimString: Swift.String) public func contains(captureNamed name: Swift.String) -> Swift.Bool } @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) extension _StringProcessing.Regex where Output == _StringProcessing.AnyRegexOutput { public init(_ regex: _StringProcessing.Regex) } @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) extension _StringProcessing.Regex.Match where Output == _StringProcessing.AnyRegexOutput { public init(_ match: _StringProcessing.Regex.Match) } @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) extension _StringProcessing.Regex { public init?(_ regex: _StringProcessing.Regex<_StringProcessing.AnyRegexOutput>, as outputType: Output.Type = Output.self) } @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public protocol RegexComponent { associatedtype RegexOutput var regex: _StringProcessing.Regex { get } } @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public struct Regex : _StringProcessing.RegexComponent { @usableFromInline internal init(_regexString pattern: Swift.String) @usableFromInline internal init(_regexString pattern: Swift.String, version: Swift.Int) public var regex: _StringProcessing.Regex { get } @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *) public typealias RegexOutput = Output } @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) extension _StringProcessing.Regex { @available(*, deprecated, renamed: "init(verbatim:)") public init(quoting _string: Swift.String) } @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public protocol CustomConsumingRegexComponent : _StringProcessing.RegexComponent { func consuming(_ input: Swift.String, startingAt index: Swift.String.Index, in bounds: Swift.Range) throws -> (upperBound: Swift.String.Index, output: Self.RegexOutput)? } @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) extension _StringProcessing.CustomConsumingRegexComponent { public var regex: _StringProcessing.Regex { get } } @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) extension _StringProcessing.Regex { @dynamicMemberLookup public struct Match { public let range: Swift.Range } } @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) extension _StringProcessing.Regex.Match { public var output: Output { get } public subscript(dynamicMember keyPath: Swift.KeyPath) -> T { get } @_disfavoredOverload public subscript(dynamicMember _keyPath: Swift.KeyPath<(Output, _doNotUse: ()), Output>) -> Output { get } } @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) extension _StringProcessing.Regex { public func wholeMatch(in string: Swift.String) throws -> _StringProcessing.Regex.Match? public func prefixMatch(in string: Swift.String) throws -> _StringProcessing.Regex.Match? public func firstMatch(in string: Swift.String) throws -> _StringProcessing.Regex.Match? public func wholeMatch(in string: Swift.Substring) throws -> _StringProcessing.Regex.Match? public func prefixMatch(in string: Swift.Substring) throws -> _StringProcessing.Regex.Match? public func firstMatch(in string: Swift.Substring) throws -> _StringProcessing.Regex.Match? } @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) extension Swift.BidirectionalCollection where Self.SubSequence == Swift.Substring { @inlinable public func wholeMatch(of regex: R) -> _StringProcessing.Regex.Match? where R : _StringProcessing.RegexComponent { try? regex.regex.wholeMatch(in: self[...]) } @inlinable public func prefixMatch(of regex: R) -> _StringProcessing.Regex.Match? where R : _StringProcessing.RegexComponent { try? regex.regex.prefixMatch(in: self[...]) } } @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) extension _StringProcessing.Regex { public func ignoresCase(_ ignoresCase: Swift.Bool = true) -> _StringProcessing.Regex<_StringProcessing.Regex.RegexOutput> public func asciiOnlyWordCharacters(_ useASCII: Swift.Bool = true) -> _StringProcessing.Regex<_StringProcessing.Regex.RegexOutput> public func asciiOnlyDigits(_ useASCII: Swift.Bool = true) -> _StringProcessing.Regex<_StringProcessing.Regex.RegexOutput> public func asciiOnlyWhitespace(_ useASCII: Swift.Bool = true) -> _StringProcessing.Regex<_StringProcessing.Regex.RegexOutput> public func asciiOnlyCharacterClasses(_ useASCII: Swift.Bool = true) -> _StringProcessing.Regex<_StringProcessing.Regex.RegexOutput> public func wordBoundaryKind(_ wordBoundaryKind: _StringProcessing.RegexWordBoundaryKind) -> _StringProcessing.Regex<_StringProcessing.Regex.RegexOutput> public func dotMatchesNewlines(_ dotMatchesNewlines: Swift.Bool = true) -> _StringProcessing.Regex<_StringProcessing.Regex.RegexOutput> public func anchorsMatchLineEndings(_ matchLineEndings: Swift.Bool = true) -> _StringProcessing.Regex<_StringProcessing.Regex.RegexOutput> public func repetitionBehavior(_ behavior: _StringProcessing.RegexRepetitionBehavior) -> _StringProcessing.Regex<_StringProcessing.Regex.RegexOutput> public func matchingSemantics(_ semanticLevel: _StringProcessing.RegexSemanticLevel) -> _StringProcessing.Regex<_StringProcessing.Regex.RegexOutput> } @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public struct RegexSemanticLevel : Swift.Hashable { public static var graphemeCluster: _StringProcessing.RegexSemanticLevel { get } public static var unicodeScalar: _StringProcessing.RegexSemanticLevel { get } public static func == (a: _StringProcessing.RegexSemanticLevel, b: _StringProcessing.RegexSemanticLevel) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public struct RegexWordBoundaryKind : Swift.Hashable { public static var simple: _StringProcessing.RegexWordBoundaryKind { get } public static var `default`: _StringProcessing.RegexWordBoundaryKind { get } public static func == (a: _StringProcessing.RegexWordBoundaryKind, b: _StringProcessing.RegexWordBoundaryKind) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public struct RegexRepetitionBehavior : Swift.Hashable { public static func == (a: _StringProcessing.RegexRepetitionBehavior, b: _StringProcessing.RegexRepetitionBehavior) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) extension _StringProcessing.RegexRepetitionBehavior { public static var eager: _StringProcessing.RegexRepetitionBehavior { get } public static var reluctant: _StringProcessing.RegexRepetitionBehavior { get } public static var possessive: _StringProcessing.RegexRepetitionBehavior { get } } @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public struct _RegexFactory { @available(macOS 14.0, iOS 17.0, watchOS 10.0, tvOS 17.0, *) public func ignoreCapturesInTypedOutput(_ child: some RegexComponent) -> _StringProcessing.Regex @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public func accumulate(_ left: some RegexComponent, _ right: some RegexComponent) -> _StringProcessing.Regex @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public func accumulateAlternation(_ left: some RegexComponent, _ right: some RegexComponent) -> _StringProcessing.Regex @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public func zeroOrOne(_ component: some RegexComponent, _ behavior: _StringProcessing.RegexRepetitionBehavior? = nil) -> _StringProcessing.Regex @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public func zeroOrMore(_ component: some RegexComponent, _ behavior: _StringProcessing.RegexRepetitionBehavior? = nil) -> _StringProcessing.Regex @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public func oneOrMore(_ component: some RegexComponent, _ behavior: _StringProcessing.RegexRepetitionBehavior? = nil) -> _StringProcessing.Regex @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public func exactly(_ count: Swift.Int, _ component: some RegexComponent) -> _StringProcessing.Regex @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public func repeating(_ range: Swift.Range, _ behavior: _StringProcessing.RegexRepetitionBehavior?, _ component: some RegexComponent) -> _StringProcessing.Regex @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public func atomicNonCapturing(_ component: some RegexComponent) -> _StringProcessing.Regex @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public func orderedChoice(_ component: some RegexComponent) -> _StringProcessing.Regex @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public func capture(_ r: some RegexComponent) -> _StringProcessing.Regex @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public func capture(_ component: some RegexComponent, _ reference: Swift.Int) -> _StringProcessing.Regex @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public func capture(_ component: some RegexComponent, _ reference: Swift.Int? = nil, _ transform: @escaping (W) throws -> NewCapture) -> _StringProcessing.Regex @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) public func captureOptional(_ component: some RegexComponent, _ reference: Swift.Int? = nil, _ transform: @escaping (W) throws -> NewCapture?) -> _StringProcessing.Regex }