getSlice(delimiter:slice:)

    Splits the string using a delimiter and returns the substring at index slice. Returns an empty string if the slice does not exist.

    StringName.swift:256
    final func getSlice(delimiter: String, slice: Int64) -> String

    This is faster than split(delimiter:allowEmpty:maxsplit:), if you only need one substring.

    Example:

    Other members in extension

    Typealiases

    Type members

    Instance members