icu_properties::sets

Function bidi_mirrored

Source
pub const fn bidi_mirrored() -> CodePointSetDataBorrowed<'static>
Expand description

Characters that are mirrored in bidirectional text

Enabled with the compiled_data Cargo feature.

📚 Help choosing a constructor

§Example

use icu::properties::sets;

let bidi_mirrored = sets::bidi_mirrored();

assert!(bidi_mirrored.contains('['));
assert!(bidi_mirrored.contains(']'));
assert!(bidi_mirrored.contains('∑'));  // U+2211 N-ARY SUMMATION
assert!(!bidi_mirrored.contains('ཉ'));  // U+0F49 TIBETAN LETTER NYA