Function icu_properties::sets::unified_ideograph

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

A property which specifies the exact set of Unified CJK Ideographs in the standard

Enabled with the compiled_data Cargo feature.

📚 Help choosing a constructor

§Example

use icu::properties::sets;

let unified_ideograph = sets::unified_ideograph();

assert!(unified_ideograph.contains('川'));  // U+5DDD CJK UNIFIED IDEOGRAPH-5DDD
assert!(unified_ideograph.contains('木'));  // U+6728 CJK UNIFIED IDEOGRAPH-6728
assert!(!unified_ideograph.contains('𛅸'));  // U+1B178 NUSHU CHARACTER-1B178