Function icu_properties::sets::terminal_punctuation
source · pub const fn terminal_punctuation() -> CodePointSetDataBorrowed<'static>
Expand description
Punctuation characters that generally mark the end of textual units
✨ Enabled with the compiled_data
Cargo feature.
§Example
use icu::properties::sets;
let terminal_punctuation = sets::terminal_punctuation();
assert!(terminal_punctuation.contains('.'));
assert!(terminal_punctuation.contains('?'));
assert!(terminal_punctuation.contains('᪨')); // U+1AA8 TAI THAM SIGN KAAN
assert!(terminal_punctuation.contains(','));
assert!(!terminal_punctuation.contains('¿')); // U+00BF INVERTED QUESTION MARK