Instance Method

scanCharacters(from:into:)

Scans the string as long as characters from a given character set are encountered, accumulating characters into a string that’s returned by reference.

Declaration

func scanCharacters(from set: CharacterSet, into result: AutoreleasingUnsafeMutablePointer<NSString?>?) -> Bool

Parameters

scanSet

The set of characters to scan.

stringValue

Upon return, contains the characters scanned.

Return Value

true if the receiver scanned any characters, otherwise false.

Discussion

Invoke this method with NULL as stringValue to simply scan past a given set of characters.

See Also

Scanning Characters and Strings

func scanUpToCharacters(from: CharacterSet, into: AutoreleasingUnsafeMutablePointer<NSString?>?) -> Bool

Scans the string until a character from a given character set is encountered, accumulating characters into a string that’s returned by reference.

func scanString(String, into: AutoreleasingUnsafeMutablePointer<NSString?>?) -> Bool

Scans a given string, returning an equivalent string object by reference if a match is found.

func scanUpTo(String, into: AutoreleasingUnsafeMutablePointer<NSString?>?) -> Bool

Scans the string until a given string is encountered, accumulating characters into a string that’s returned by reference.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software