parseme_xid/
lib.rs

1//! Unicode XID support for Parseme.
2
3use unicode_xid::UnicodeXID;
4
5/// Returns `true` if the provided character is a Unicode XID starting character.
6#[inline]
7pub fn is_start(char: char) -> bool {
8    char.is_xid_start()
9}
10
11/// Returns `true` if the provided character is a Unicode XID continuing character.
12#[inline]
13pub fn is_continue(char: char) -> bool {
14    char.is_xid_continue()
15}