Function icu::properties::maps::line_break

source ·
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