Function icu_properties::sets::pattern_syntax

source ·
pub const fn pattern_syntax() -> CodePointSetDataBorrowed<'static>
Expand description

Characters used as syntax in patterns (such as regular expressions). See Unicode Standard Annex #31 for more details.

Enabled with the compiled_data Cargo feature.

📚 Help choosing a constructor

§Example

use icu::properties::sets;

let pattern_syntax = sets::pattern_syntax();

assert!(pattern_syntax.contains('{'));
assert!(pattern_syntax.contains('⇒'));  // U+21D2 RIGHTWARDS DOUBLE ARROW
assert!(!pattern_syntax.contains('0'));