Function gutenberg_post_parser::parser::block_name_part[]

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

Recognize a block name part.

Examples

extern crate gutenberg_post_parser;

use gutenberg_post_parser::parser::block_name_part;

let input = &b"foo bar"[..];
let output = Ok(
    (
        // The remaining data.
        &b" bar"[..],

        // The parsed data.
        &b"foo"[..]
    )
);

assert_eq!(block_name_part(input), output);