FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SentenceBreakClass

    enum · ferroui-base · v0.5.0

    enum SentenceBreakClass
    

    Sentence_Break property values, as defined by UAX #29.

    View source

    Members

    Other

    Other = 0
    

    A code point in none of the other classes, carrying no meaning of its own for the sentence rules.

    Property value alias: XX

    Source

    CarriageReturn

    CarriageReturn = 1
    

    U+000D CARRIAGE RETURN. Ends a sentence, and joins to a following LineFeed rather than breaking between the two.

    Property value alias: CR

    Source

    LineFeed

    LineFeed = 2
    

    U+000A LINE FEED. Ends a sentence.

    Property value alias: LF

    Source

    Extend

    Extend = 3
    

    A combining mark or other code point that attaches to the one before it. Transparent to the sentence rules, which read through it to the code point it attaches to.

    Property value alias: EX

    Source

    Sep

    Sep = 4
    

    A paragraph or line separator, such as U+2029 PARAGRAPH SEPARATOR. Ends a sentence.

    Property value alias: SE

    Source

    Format

    Format = 5
    

    A format code point. Transparent to the sentence rules, in the same way as Extend.

    Property value alias: FO

    Source

    Sp

    Sp = 6
    

    Whitespace that is not a paragraph separator. A run of it following a terminator belongs to the sentence that terminator ends, so the boundary falls after the run.

    Property value alias: SP

    Source

    Lower

    Lower = 7
    

    A lowercase letter. Reached after a full stop, it marks that stop as an abbreviation rather than the end of a sentence.

    Property value alias: LO

    Source

    Upper

    Upper = 8
    

    An uppercase or titlecase letter.

    Property value alias: UP

    Source

    OLetter

    OLetter = 9
    

    A letter that is neither uppercase nor lowercase, as in scripts without case such as Han, Hebrew or Devanagari.

    Property value alias: OL

    Source

    Numeric

    Numeric = 10
    

    A numeric code point. Keeps a full stop between digits from ending a sentence, so that decimal numbers stay whole.

    Property value alias: NU

    Source

    ATerm

    ATerm = 11
    

    A full stop or equivalent, which may end a sentence or may mark an abbreviation or a decimal point. Which one it is depends on what surrounds it.

    Property value alias: AT

    Source

    SContinue

    SContinue = 12
    

    A code point that carries a sentence on past a terminator, such as a comma, instead of allowing a boundary there.

    Property value alias: SC

    Source

    STerm

    STerm = 13
    

    A sentence terminator that is unambiguous, such as an exclamation or question mark.

    Property value alias: ST

    Source

    Close

    Close = 14
    

    Closing punctuation, such as a bracket or quotation mark, which may sit between a terminator and the sentence boundary.

    Property value alias: CL

    Source

    COUNT

    const COUNT: usize
    

    The number of values.

    Source

    from_u32

    const fn from_u32(value: u32) -> Self
    

    Converts the numeric value stored in the generated tries (the cast upstream performs). Values outside of the enum map to Other (value 0).

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ResourceKeyObject
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Copy
    • Debug
    • Default
    • StructuralPartialEq
    • PartialEq
    • Eq
    • PartialOrd
    • Ord
    • Hash

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.