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

scanHexInt:

Scans for an unsigned value from a hexadecimal representation, returning a found value by reference. ある16進数表現から符号なし値を走査します、見つかった値を参照によって返します。

Declaration 宣言

- (BOOL)scanHexInt:(unsigned int *)result;

Parameters パラメータ

intValue

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

Return Value 戻り値

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

Discussion 議論

The hexadecimal integer representation may optionally be preceded by 0x or 0X. Skips past excess digits in the case of overflow, so the receiver’s position is past the entire hexadecimal representation. 16進法の整数表現は、随意に0xまたは0Xによって先行されるかもしれません。オーバーフローの場合において超過桁をスキップします、そうするとレシーバのもつ位置はその16進表現全体を越えます。

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

See Also 参照

Scanning Numeric Values 数値を走査する