Instance Method

scanHexInt32(_:)

Scans for an unsigned value from a hexadecimal representation, returning a found value by reference.

Declaration

func scanHexInt32(_ result: UnsafeMutablePointer<UInt32>?) -> Bool

Parameters

intValue

Upon return, contains the scanned value. Contains UINT_MAX on overflow.

Return Value

Returns true if the receiver finds a valid hexadecimal integer representation, otherwise false. Overflow is considered a valid hexadecimal integer representation.

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.

Invoke this method with NULL as intValue to simply scan past a hexadecimal integer representation.

See Also

Scanning Numeric Values

func scanDecimal(UnsafeMutablePointer<Decimal>?) -> Bool

Scans for an NSDecimal value, returning a found value by reference.

func scanDouble(UnsafeMutablePointer<Double>?) -> Bool

Scans for a double value, returning a found value by reference.

func scanFloat(UnsafeMutablePointer<Float>?) -> Bool

Scans for a float value, returning a found value by reference.

func scanHexDouble(UnsafeMutablePointer<Double>?) -> Bool

Scans for a double value from a hexadecimal representation, returning a found value by reference.

func scanHexFloat(UnsafeMutablePointer<Float>?) -> Bool

Scans for a double value from a hexadecimal representation, returning a found value by reference.

func scanHexInt64(UnsafeMutablePointer<UInt64>?) -> Bool

Scans for a long long value from a hexadecimal representation, returning a found value by reference.

func scanInt(UnsafeMutablePointer<Int>?) -> Bool

Scans for an NSInteger value from a decimal representation, returning a found value by reference

func scanInt32(UnsafeMutablePointer<Int32>?) -> Bool

Scans for an int value from a decimal representation, returning a found value by reference.

func scanInt64(UnsafeMutablePointer<Int64>?) -> Bool

Scans for a long long value from a decimal representation, returning a found value by reference.

func scanUnsignedLongLong(UnsafeMutablePointer<UInt64>?) -> Bool

Scans for an unsigned long long value from a decimal representation, returning a found value by reference.