ΒΆtemplate <typename N>
bool to_integer(llvm::StringRef S,
N& Num,
unsigned int Base = 0)
template <typename N>
bool to_integer(llvm::StringRef S,
N& Num,
unsigned int Base = 0)
Description
Convert the string \p S to an integer of the specified type using the radix \p Base. If \p Base is 0, auto-detects the radix. Returns true if the number was successfully converted, false otherwise.
Declared at: llvm/include/llvm/ADT/StringExtras.h:193
Templates
- N
Parameters
- llvm::StringRef S
- N& Num
- unsigned int Base = 0