Function gutenberg_post_parser::parser::core_block_name[]

pub fn core_block_name(i: Input) -> IResult<Input, (Input, Input), u32>

Recognize a globally-namespaced block name.

Examples

extern crate gutenberg_post_parser;

use gutenberg_post_parser::parser::core_block_name;

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

        // The Abstract Syntax Tree.
        (&b"core"[..], &b"foo"[..])
    )
);

assert_eq!(core_block_name(input), output);