Scans a given string, returning an equivalent string object by reference if a match is found.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
The string for which to scan at the current scan location.
Upon return, if the receiver contains a string equivalent to
stringat the current scan location, contains a string equivalent to
string matches the characters at the scan location, otherwise
string is present at the current scan location, then the current scan location is advanced to after the string; otherwise the scan location does not change.
Invoke this method with
string to simply scan past a given string.