Function isize

fn isize<T, E: ParseError<T>>(input: T) -> IResult<T, isize, E>
where
    T: Input + Clone + for<'a> Compare<&'a [u8]>,
    <T as Input>::Item: AsChar

will parse a number in text form to a number

Complete version: can parse until the end of input.