pub const fn line_break() -> CodePointMapDataBorrowed<'static, LineBreak>Expand description
Return a CodePointMapDataBorrowed for the Line_Break Unicode enumerated
property. See LineBreak.
โจ 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, LineBreak};
assert_eq!(maps::line_break().get(')'), LineBreak::CloseParenthesis); // U+0029: Right Parenthesis
assert_eq!(maps::line_break().get('ใ'), LineBreak::ConditionalJapaneseStarter); //U+3041: Hiragana Letter Small A