---
title: "scanHexInt32(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/scanner/scanhexint32(_:)"
---

# scanHexInt32(_:)

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

## Declaration

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

## Parameters

- `result`: Upon return, contains the scanned value. Contains UINT_MAX on overflow.

## Return Value

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

## Discussion

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

- [scanDecimal(_:)](foundation/scanner/scandecimal(_:).md)
- [scanDouble(_:)](foundation/scanner/scandouble(_:).md)
- [scanFloat(_:)](foundation/scanner/scanfloat(_:).md)
- [scanHexDouble(_:)](foundation/scanner/scanhexdouble(_:).md)
- [scanHexFloat(_:)](foundation/scanner/scanhexfloat(_:).md)
- [scanHexInt64(_:)](foundation/scanner/scanhexint64(_:).md)
- [scanInt(_:)](foundation/scanner/scanint(_:).md)
- [scanInt32(_:)](foundation/scanner/scanint32(_:).md)
- [scanInt64(_:)](foundation/scanner/scanint64(_:).md)
- [scanUnsignedLongLong(_:)](foundation/scanner/scanunsignedlonglong(_:).md)
