Function icu::properties::sets::load_soft_dotted
source · [−]pub fn load_soft_dotted(
provider: &impl DataProvider<SoftDottedV1Marker>
) -> Result<CodePointSetData, PropertiesError>
Expand description
Characters with a “soft dot”, like i or j. An accent placed on these characters causes the dot to disappear.
Example
use icu_properties::sets;
let data =
sets::load_soft_dotted(&icu_testdata::unstable())
.expect("The data should be valid");
let soft_dotted = data.as_borrowed();
assert!(soft_dotted.contains('і')); //U+0456 CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I
assert!(!soft_dotted.contains('ı')); // U+0131 LATIN SMALL LETTER DOTLESS I