Function icu_properties::sets::dash
source · pub const fn dash() -> CodePointSetDataBorrowed<'static>
Expand description
Punctuation characters explicitly called out as dashes in the Unicode Standard, plus their compatibility equivalents
✨ Enabled with the compiled_data
Cargo feature.
§Example
use icu::properties::sets;
let dash = sets::dash();
assert!(dash.contains('⸺')); // U+2E3A TWO-EM DASH
assert!(dash.contains('-')); // U+002D
assert!(!dash.contains('=')); // U+003D