Function gutenberg_post_parser::parser::whitespaces[]

pub fn whitespaces<'a>(i: &'a [u8]) -> IResult<&[u8], &[u8], u32>

Recognize whitespaces.

Examples

extern crate gutenberg_post_parser;

use gutenberg_post_parser::parser::whitespaces;

let input = &b" \n\r\t xyz"[..];
let output = Ok(
    (
        // The remaining data.
        &b"xyz"[..],

        // The parsed data.
        &b" \n\r\t "[..]
    )
);

assert_eq!(whitespaces(input), output);