Function prototype to parse not base-10 integers(base-2, octal, hexadecimal and so on).
You can find more information in comments below.
/**
Function prototype which try to parse integer value. If succeeded, set index to next character and store found value in result
@param options Parser setting
@param s String where to search/parse
@param min Minimum index in string for looking up(in general)
@param max Maximum index in string for looking up(in general)
@param index [in, out] Index in string at which check if it is integer number. On success updated to the index right after number end
@param result [out] Number if found
@return true if there is number at specified index
*/
using FParseInteger = bool(*)(const PARSER_OPTIONS &options, FGetChar get, const String &s, const int min, const int max, int &index, long long &result);
Namespace: | nitisa::scripting |
Include: | Nitisa/Modules/Scripting/Types.h |