Function icu::properties::sets::load_join_control
source · [−]pub fn load_join_control(
provider: &impl DataProvider<JoinControlV1Marker>
) -> Result<CodePointSetData, PropertiesError>
Expand description
Format control characters which have specific functions for control of cursive joining and ligation
Example
use icu_properties::sets;
let data =
sets::load_join_control(&icu_testdata::unstable())
.expect("The data should be valid");
let join_control = data.as_borrowed();
assert!(join_control.contains32(0x200C)); // ZERO WIDTH NON-JOINER
assert!(join_control.contains32(0x200D)); // ZERO WIDTH JOINER
assert!(!join_control.contains32(0x200E));