Scans the string until a given string is encountered, accumulating characters into a string that’s returned by reference.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The string to scan up to.
Upon return, contains any characters that were scanned.
YES if the receiver scans any characters, otherwise
If the only scanned characters are in the
characters character set (which by default is the whitespace and newline character set), then this method returns
stop is present in the receiver, then on return the scan location is set to the beginning of that string.
stop is the first string in the receiver, then the method returns
string is not changed.
If the search string (
stop) isn't present in the scanner's source string, the remainder of the source string is put into
string, the receiver’s
scan is advanced to the end of the source string, and the method returns
Invoke this method with
string to simply scan up to a given string.