Function icu::properties::sets::load_ideographic
source · [−]pub fn load_ideographic(
provider: &impl DataProvider<IdeographicV1Marker>
) -> Result<CodePointSetData, PropertiesError>
Expand description
Characters considered to be CJKV (Chinese, Japanese, Korean, and Vietnamese) ideographs, or related siniform ideographs
Example
use icu_properties::sets;
let data =
sets::load_ideographic(&icu_testdata::unstable())
.expect("The data should be valid");
let ideographic = data.as_borrowed();
assert!(ideographic.contains('川')); // U+5DDD CJK UNIFIED IDEOGRAPH-5DDD
assert!(!ideographic.contains('밥')); // U+BC25 HANGUL SYLLABLE BAB