localizedScanner(with:)
Returns an NSScanner object that scans a given string according to the user’s default locale.
Declaration
class func localizedScanner(with string: String) -> AnyParameters
- string:
The string to scan.
Return Value
An NSScanner object that scans aString according to the user’s default locale.
Discussion
Sets the string to scan by invoking init(string:) with aString. The locale is set with Scanner.