parse

Parse an integer value from the provided 'digits' 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.

A non-null 'ate' will return the number of characters used to construct the returned value.

long
parse
(
T
)
(
T[] digits
,
uint radix = 0
,
size_t* ate = null
)

Throws

none. The 'ate' param should be checked for valid input.

Meta