llvm::consumeUnsignedInteger

Parse an unsigned integer from the front of Str using Radix into Result.

Synopsis

Declared in <llvm/ADT/StringRef.h>

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

Return Value

True on error (no conversion or overflow).

Parameters

NameDescription
StrInput string; the consumed prefix is removed on success.
RadixNumeric base, or 0 for autosensing.
ResultDestination for the parsed value.