Documentation

Text::TryParseUInt

Function

bool Text::TryParseUInt(const string&in str, int&out, int base = 10)

Tries to parse the given string as an unsigned integer. This will return true only if the string was parsed entirely and was not empty.

string str

int

int base

The base to use when parsing the integer. To parse hexadecimal numbers, use base 16. Pass 0 to automatically determine the base.

Returns bool