Skip to main content

could_be_unicode_ident_start

Function could_be_unicode_ident_start 

Source
pub fn could_be_unicode_ident_start(byte: u8) -> bool
Expand description

Check if a byte sequence could be the start of a Unicode identifier (i.e., a multi-byte UTF-8 sequence starting with a non-ASCII byte that is XID_Continue).

This is used by the lexer to decide whether to attempt UTF-8 decoding for an identifier character.