toInt

Parse an integer value from the provided string.

The string is inspected for a sign and an optional radix prefix. A radix may be provided as an argument instead, whereupon it must match the prefix (where present). When radix is set to zero, conversion will default to decimal.

Parameters

T

char type of string

digits T[]

string to parse

value int

receives parsed integer

radix uint

specifies which radix to interpret the string as

Return Value

Type: bool

true if parsing succeeded

Meta