icu_properties::sets

Function changes_when_nfkc_casefolded

Source
pub const fn changes_when_nfkc_casefolded() -> CodePointSetDataBorrowed<'static>
Expand description

Characters which are not identical to their NFKC_Casefold mapping

โœจ Enabled with the compiled_data Cargo feature.

๐Ÿ“š Help choosing a constructor

ยงExample

use icu::properties::sets;

let changes_when_nfkc_casefolded = sets::changes_when_nfkc_casefolded();

assert!(changes_when_nfkc_casefolded.contains('๐Ÿ„ต'));  // U+1F135 SQUARED LATIN CAPITAL LETTER F
assert!(!changes_when_nfkc_casefolded.contains('f'));