Instance Methodswift 6.0.1Swift

    removeSubrange(_:)

    Removes the characters in the given range.

    mutating func removeSubrange(_ bounds: Range<String.Index>)

    Parameters

    bounds

    The range of the elements to remove. The upper and lower bounds of bounds must be valid indices of the string and not equal to the string’s end index.

    bounds

    The range of the elements to remove. The upper and lower bounds of bounds must be valid indices of the string.

    Calling this method invalidates any existing indices for use with this string.

    Other members in extension

    Types

    Typealiases

    Show obsolete interfaces (2)

    Hide obsolete interfaces

    Type members

    Show obsolete interfaces (17)

    Hide obsolete interfaces

    Instance members

    Show obsolete interfaces (3)

    Hide obsolete interfaces