Function icu_properties::sets::sentence_terminal

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

Punctuation characters that generally mark the end of sentences

Enabled with the compiled_data Cargo feature.

📚 Help choosing a constructor

§Example

use icu::properties::sets;

let sentence_terminal = sets::sentence_terminal();

assert!(sentence_terminal.contains('.'));
assert!(sentence_terminal.contains('?'));
assert!(sentence_terminal.contains('᪨'));  // U+1AA8 TAI THAM SIGN KAAN
assert!(!sentence_terminal.contains(','));
assert!(!sentence_terminal.contains('¿'));  // U+00BF INVERTED QUESTION MARK