Function icu::properties::sets::math

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

Characters used in mathematical notation

Enabled with the compiled_data Cargo feature.

📚 Help choosing a constructor

§Example

use icu::properties::sets;

let math = sets::math();

assert!(math.contains('='));
assert!(math.contains('+'));
assert!(!math.contains('-'));
assert!(math.contains('−'));  // U+2212 MINUS SIGN
assert!(!math.contains('/'));
assert!(math.contains('∕'));  // U+2215 DIVISION SLASH