codepoint

Function codepoint 

Source
pub fn codepoint() -> Codepoint
Expand description

Returns a new pattern that matches the next utf-8 codepoint if it exists.

use bparse::{Pattern, codepoint};

assert_eq!(codepoint().eval("๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆa".as_bytes()), Some(4))