Initializer

init(string:)

Returns an NSScanner object initialized to scan a given string.

Declaration

init(string: String)

Parameters

aString

The string to scan.

Return Value

An NSScanner object initialized to scan aString from the beginning. The returned object might be different than the original receiver.

See Also

Creating a Scanner

class func localizedScanner(with: String) -> Any

Returns an NSScanner object that scans a given string according to the user’s default locale.