nom8::character

Function recognize_float_parts

Source
pub fn recognize_float_parts<T, E: ParseError<T>, const STREAMING: bool>(
    input: T,
) -> IResult<T, (bool, <T as IntoOutput>::Output, <T as IntoOutput>::Output, i32), E>
Expand description

Recognizes a floating point number in text format

It returns a tuple of (sign, integer part, fraction part and exponent) of the input data.

Complete version: Can parse until the end of input.

Streaming version: Will return Err(nom8::Err::Incomplete(_)) if there is not enough data.