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

Characters commonly used for the representation of hexadecimal numbers, plus their compatibility equivalents

Example

use icu_properties::sets;

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

assert!(hex_digit.contains('0'));
assert!(!hex_digit.contains('੩'));  // U+0A69 GURMUKHI DIGIT THREE
assert!(hex_digit.contains('f'));
assert!(hex_digit.contains('f'));  // U+FF46 FULLWIDTH LATIN SMALL LETTER F
assert!(hex_digit.contains('F'));  // U+FF26 FULLWIDTH LATIN CAPITAL LETTER F
assert!(!hex_digit.contains('Ä'));  // U+00C4 LATIN CAPITAL LETTER A WITH DIAERESIS