ProtocolSwift5.9.0

    StringProtocol

    A type that can represent a string as a collection of characters.

    protocol StringProtocol : BidirectionalCollection, Comparable, ExpressibleByStringInterpolation, Hashable, LosslessStringConvertible, TextOutputStream, TextOutputStreamable where Self.Element == Character, Self.Index == String.Index, Self.StringInterpolation == DefaultStringInterpolation, Self.SubSequence : StringProtocol

    Do not declare new conformances to StringProtocol. Only the String and Substring types in the standard library are valid conforming types.

    Supertypes

    Requirements

    Citizens in Swift

    Members

    Available in _StringProcessing

    Members

    Available in RegexBuilder

    where Self.SubSequence == Substring

    Members

    Available in Foundation

    Members