pub fn load_unified_ideograph(
    provider: &impl DataProvider<UnifiedIdeographV1Marker>
) -> Result<CodePointSetData, PropertiesError>
Expand description

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

Example

use icu_properties::sets;

let data =
    sets::load_unified_ideograph(&icu_testdata::unstable())
        .expect("The data should be valid");
let unified_ideograph = data.as_borrowed();

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