Function icu::properties::maps::bidi_class

source ·
pub const fn bidi_class() -> CodePointMapDataBorrowed<'static, BidiClass>
Expand description

Return a CodePointMapDataBorrowed for the Bidi_Class Unicode enumerated property. See [BidiClass].

Enabled with the compiled_data Cargo feature.

📚 Help choosing a constructor

§Example

use icu::properties::{maps, BidiClass};

assert_eq!(maps::bidi_class().get('y'), BidiClass::LeftToRight);  // U+0079
assert_eq!(maps::bidi_class().get('ع'), BidiClass::ArabicLetter);  // U+0639