Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The <a href="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSScanner_Class/index.html" rel="nofollow">NSScanner</a> class is an abstract superclass of a class cluster that declares the programmatic interface for an object that scans values from an NSString object.</p> <p>An NSScanner object interprets and converts the characters of an NSString object into number and string values. You assign the scanner’s string on creating it, and the scanner progresses through the characters of that string from beginning to end as you request items.</p> <p>Because of the nature of class clusters, scanner objects aren’t actual instances of the NSScanner class but one of its private subclasses. Although a scanner object’s class is private, its interface is public, as declared by this abstract superclass, NSScanner. The primitive methods of NSScanner are string and all of the methods listed under <a href="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSScanner_Class/index.html#//apple_ref/doc/uid/20000159-SW1" rel="nofollow">Configuring a Scanner</a>. The objects you create using this class are referred to as scanner objects (and when no confusion will result, merely as scanners).</p> <p>You can set an NSScanner object to ignore a set of characters as it scans the string using the <a href="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSScanner_Class/index.html#//apple_ref/occ/instp/NSScanner/charactersToBeSkipped" rel="nofollow">charactersToBeSkipped</a> property. Characters in the skip set are skipped over before scanning the target. The default set of characters to skip is the whitespace and newline character set.</p> <p>To retrieve the unscanned remainder of the string, use [[scanner string] <a href="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/index.html#//apple_ref/occ/instm/NSString/substringFromIndex:" rel="nofollow">substringFromIndex:</a> [scanner scanLocation]]. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload