Function icu::properties::sets::load_ascii_hex_digit
source · [−]pub fn load_ascii_hex_digit(
provider: &impl DataProvider<AsciiHexDigitV1Marker>
) -> Result<CodePointSetData, PropertiesError>
Expand description
ASCII characters commonly used for the representation of hexadecimal numbers
Example
use icu_properties::sets;
let data =
sets::load_ascii_hex_digit(&icu_testdata::unstable())
.expect("The data should be valid");
let ascii_hex_digit = data.as_borrowed();
assert!(ascii_hex_digit.contains('3'));
assert!(!ascii_hex_digit.contains('੩')); // U+0A69 GURMUKHI DIGIT THREE
assert!(ascii_hex_digit.contains('A'));
assert!(!ascii_hex_digit.contains('Ä')); // U+00C4 LATIN CAPITAL LETTER A WITH DIAERESIS