Function icu_properties::maps::sentence_break

source ·
pub const fn sentence_break() -> CodePointMapDataBorrowed<'static, SentenceBreak>
Expand description

Return a CodePointMapDataBorrowed for the Sentence_Break Unicode enumerated property. See SentenceBreak.

Enabled with the compiled_data Cargo feature.

📚 Help choosing a constructor

Note: Use icu::segmenter for an all-in-one break iterator implementation.

§Example

use icu::properties::{maps, SentenceBreak};

assert_eq!(maps::sentence_break().get('9'), SentenceBreak::Numeric); // U+FF19: Fullwidth Digit Nine
assert_eq!(maps::sentence_break().get(','), SentenceBreak::SContinue); // U+002C: Comma