Scans the string until a character from a given character set is encountered, accumulating characters into a string that’s returned by reference.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
The set of characters up to which to scan.
Upon return, contains the characters scanned.
true if the receiver scanned any characters, otherwise
If the only scanned characters are in the
characters character set (which is the whitespace and newline character set by default), then returns
Invoke this method with
string to simply scan up to a given set of characters.
If no characters in
stop are 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