Crate atoi [−] [src]
A crate for parsing integers directly form ASCII ([u8]
) without encoding them into utf8
first. The name is inspired by the famous C function.
Using str::from_utf8
and str::parse
is likely to be more idiomatic. Use this crate if you want to avoid decoding utf8 (e.g. for
performance reasons), but stick to safe code where using str::from_ut8_unchecked
is not an
option.
Functions
ascii_to_digit |
Converts an ascii character to digit |
atoi |
Parses an integer from a slice. |