Contents

enumerateSubstrings(from:options:using:)

Enumerates the textual segment boundaries starting at the location you specify.

Declaration

func enumerateSubstrings(from location: any NSTextLocation, options: NSString.EnumerationOptions = [], using block: (String?, NSTextRange, NSTextRange?, UnsafeMutablePointer<ObjCBool>) -> Void)

Parameters

  • location:

    The location where the enumeration starts.

  • options:

    One or more of the available Enumerationoptions.

  • block:

    A closure to invoke to evaluate the substrings; end the enumeration early by returning false.

See Also

Enumerating components of the selection