Function icu_properties::sets::xid_continue
source · pub const fn xid_continue() -> CodePointSetDataBorrowed<'static>
Expand description
Characters that can come after the first character in an identifier. See Unicode Standard Annex #31
for more details.
✨ Enabled with the compiled_data
Cargo feature.
§Example
use icu::properties::sets;
let xid_continue = sets::xid_continue();
assert!(xid_continue.contains('x'));
assert!(xid_continue.contains('1'));
assert!(xid_continue.contains('_'));
assert!(xid_continue.contains('ߝ')); // U+07DD NKO LETTER FA
assert!(!xid_continue.contains('ⓧ')); // U+24E7 CIRCLED LATIN SMALL LETTER X
assert!(!xid_continue.contains32(0xFC5E)); // ARABIC LIGATURE SHADDA WITH DAMMATAN ISOLATED FORM