llvm::getAsUnsignedInteger

Parse an unsigned integer from Str using Radix into Result.

Synopsis

Declared in <llvm/ADT/StringRef.h>

bool
getAsUnsignedInteger(
    StringRef Str,
    unsigned int Radix,
    unsigned long long& Result);

Description

Helper for StringRef::getAsInteger.

Return Value

true on error (no conversion or overflow).

Parameters

NameDescription
StrInput string to parse in full.
RadixNumeric base, or 0 for autosensing.
ResultDestination for the parsed value.