scanString(_:into:)
Scans a given string, returning an equivalent string object by reference if a match is found.
Declaration
func scanString(_ string: String, into result: AutoreleasingUnsafeMutablePointer<NSString?>?) -> BoolParameters
- string:
The string for which to scan at the current scan location.
- result:
Upon return, if the receiver contains a string equivalent to
stringat the current scan location, contains a string equivalent tostring.
Return Value
true if string matches the characters at the scan location, otherwise false.
Discussion
If 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 NULL as stringValue to simply scan past a given string.