Instance Method インスタンスメソッド

scanInteger:

Scans for an NSInteger value from a decimal representation, returning a found value by reference ある10進表現からNSInteger値を走査します、見つかった値を参照によって返します。

Declaration 宣言

- (BOOL)scanInteger:(NSInteger *)result;

Parameters パラメータ

value

Upon return, contains the scanned value. Contains INT_MAX or INT_MIN on overflow. 戻りでは、走査された値を含みます。INT_MAXまたはINT_MINをオーバーフローでは含みます。

Return Value 戻り値

YES if the receiver finds a valid integer representation, otherwise NO. Overflow is considered a valid integer representation. YES、もしレシーバが有効な整数表現を見つけるならば、そうでなければNO。オーバーフローは、有効な整数表現とみなされます。

Discussion 議論

Skips past excess digits in the case of overflow, so the receiver’s position is past the entire integer representation. オーバーフローの場合において超過桁をスキップします、そうするとレシーバのもつ位置はその整数表現全体を越えます。

Invoke this method with NULL as value to simply scan past a decimal integer representation. NULLvalueとしてこのメソッドを発動すると、単純にひとつの10進整数表現を越えて走査します。

See Also 参照

Scanning Numeric Values 数値を走査する

Related Documentation 関連文書