icu_properties::sets

Function changes_when_uppercased

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

Characters whose normalized forms are not stable under a toUppercase mapping

โœจ Enabled with the compiled_data Cargo feature.

๐Ÿ“š Help choosing a constructor

ยงExample

use icu::properties::sets;

let changes_when_uppercased = sets::changes_when_uppercased();

assert!(changes_when_uppercased.contains('ึ‚'));  // U+0582 ARMENIAN SMALL LETTER YIWN
assert!(!changes_when_uppercased.contains('ี’'));  // U+0552 ARMENIAN CAPITAL LETTER YIWN