use a local inline isdigit implementation.