Function i16

fn i16<T, E: ParseError<T>>(input: T) -> IResult<T, i16, 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.