convertStringToInteger

C-locale independent string to integer parsing.

nothrow @nogc pure nothrow @nogc
int
convertStringToInteger
(
const(char)* s
,,
bool* err
)

Parameters

s const(char)*

Must be a zero-terminated string.

mustConsumeEntireInput bool

if true, check that s is entirely consumed by parsing the number.

err bool*

optional bool Note: unlike with convertStringToDouble, the string "4.7" will parse to just 4. Replaces %d in scanf-like functions. Only parse correctly from -2147483648 to 2147483647. Larger values are clamped to this -2147483648 to 2147483647 range.

Meta