Function std::char::is_digit_radix

pub fn is_digit_radix(c: char, radix: uint) -> bool

Checks if a character parses as a numeric digit in the given radix. Compared to is_digit(), this function only recognizes the characters 0-9, a-z and A-Z.

Return value

Returns true if c is a valid digit under radix, and false otherwise.

Failure

Fails if given a radix > 36.

Note

This just wraps to_digit().