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