Skip to main content

is_xid_identifier

Function is_xid_identifier 

Source
pub fn is_xid_identifier(s: &str) -> bool
Expand description

Check if a string is a valid XID identifier per UAX 31.

A valid identifier starts with XID_Start (or underscore) and continues with XID_Continue characters. Single underscore _ is valid.