fn read_cmd_id_str(input: &[u8]) -> IResult<&[u8], &[u8]> {
    //terminated(take_while1(is_digit), sp)(input) //< This does not work if there's no space (e.g. 4-4cylo.dat)
    let (ii, o) = input.split_at_position1_complete(|item| !is_digit(item), ErrorKind::Digit)?;
    let (i, _) = space0(ii)?;
    Ok((i, o))
}
// Read the command ID and swallow the following space, if any.
Read the command ID and swallow the following space, if any.
Read the command ID and swallow the following space if any .
fn read_cmd_id_str(input: &[u8]) -> IResult<&[u8], &[u8]> {
    //terminated(take_while1(is_digit), sp)(input) //< This does not work if there's no space (e.g. 4-4cylo.dat)
    let (ii, o) = input.split_at_position1_complete(|item| !is_digit(item), ErrorKind::Digit)?;
    let (i, _) = space0(ii)?;
    Ok((i, o))
}
fn read_cmd_id_str ( input : & [ u8 ] ) -> IResult < & [ u8 ] , & [ u8 ] > { //terminated(take_while1(is_digit), sp)(input) //< This does not work if there's no space (e.g. 4-4cylo.dat) let ( ii , o ) = input . split_at_position1_complete ( | item | ! is_digit ( item ) , ErrorKind :: Digit ) ? ; let ( i , _ ) = space0 ( ii ) ? ; Ok ( ( i , o ) ) }
Read the command ID and swallow the following space, if any.
Read the command ID and swallow the following space if any .
input
&[u8]
input
&[u8]