pub fn load_dash(
    provider: &impl DataProvider<DashV1Marker>
) -> Result<CodePointSetData, PropertiesError>
Expand description

Punctuation characters explicitly called out as dashes in the Unicode Standard, plus their compatibility equivalents

Example

use icu_properties::sets;

let data =
    sets::load_dash(&icu_testdata::unstable())
        .expect("The data should be valid");
let dash = data.as_borrowed();

assert!(dash.contains('⸺'));  // U+2E3A TWO-EM DASH
assert!(dash.contains('-'));  // U+002D
assert!(!dash.contains('='));  // U+003D