SentenceBreakClass
enum · ferroui-base · v0.5.0
enum SentenceBreakClass
Sentence_Break property values, as defined by UAX #29.
Members
OtherCarriageReturnLineFeedExtendSepFormatSpLowerUpperOLetterNumericATermSContinueSTermCloseCOUNTfrom_u32
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
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
LineFeed
LineFeed = 2
U+000A LINE FEED. Ends a sentence.
Property value alias: LF
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
Sep
Sep = 4
A paragraph or line separator, such as U+2029 PARAGRAPH SEPARATOR. Ends a sentence.
Property value alias: SE
Format
Format = 5
A format code point. Transparent to the sentence rules, in the same way as
Extend.
Property value alias: FO
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
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
Upper
Upper = 8
An uppercase or titlecase letter.
Property value alias: UP
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
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
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
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
STerm
STerm = 13
A sentence terminator that is unambiguous, such as an exclamation or question mark.
Property value alias: ST
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
COUNT
const COUNT: usize
The number of values.
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).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeResourceKeyObjectPropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneCopyDebugDefaultStructuralPartialEqPartialEqEqPartialOrdOrdHash
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.