Function icu_properties::sets::soft_dotted

source ·
pub const fn soft_dotted() -> CodePointSetDataBorrowed<'static>
Expand description

Characters with a “soft dot”, like i or j. An accent placed on these characters causes the dot to disappear.

Enabled with the compiled_data Cargo feature.

📚 Help choosing a constructor

§Example

use icu::properties::sets;

let soft_dotted = sets::soft_dotted();

assert!(soft_dotted.contains('і'));  //U+0456 CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I
assert!(!soft_dotted.contains('ı'));  // U+0131 LATIN SMALL LETTER DOTLESS I