pub enum SentenceBreak {
Show 15 variants
CR,
LF,
Extend,
Sep,
Format,
Sp,
Lower,
Upper,
OLetter,
Numeric,
ATerm,
SContinue,
STerm,
Close,
Other,
}
Expand description
Represents the Unicode character
Sentence_Break
property.
§References
Variants§
CR
U+000D CARRIAGE RETURN (CR)
LF
U+000A LINE FEED (LF)
Extend
Grapheme_Extend = Yes, or
U+200D ZERO WIDTH JOINER (ZWJ), or
General_Category = Spacing_Mark
Sep
U+0085 NEXT LINE (NEL)
U+2028 LINE SEPARATOR
U+2029 PARAGRAPH SEPARATOR
Format
General_Category = Format
and not U+200C ZERO WIDTH NON-JOINER (ZWNJ)
and not U+200D ZERO WIDTH JOINER (ZWJ)
Sp
White_Space = Yes
and Sentence_Break ≠ Sep
and Sentence_Break ≠ CR
and Sentence_Break ≠ LF
Lower
Lowercase = Yes
and Grapheme_Extend = No
Upper
General_Category = Titlecase_Letter, or
Uppercase = Yes
OLetter
Alphabetic = Yes, or
U+00A0 NO-BREAK SPACE (NBSP), or
U+05F3 ( ׳ ) HEBREW PUNCTUATION GERESH
and Lower = No
and Upper = No
and Sentence_Break ≠ Extend
Numeric
Line_Break = Numeric
ATerm
U+002E ( . ) FULL STOP
U+2024 ( ․ ) ONE DOT LEADER
U+FE52 ( ﹒ ) SMALL FULL STOP
U+FF0E ( . ) FULLWIDTH FULL STOP
SContinue
U+002C ( , ) COMMA
U+002D ( - ) HYPHEN-MINUS
U+003A ( : ) COLON
U+055D ( ՝ ) ARMENIAN COMMA
U+060C ( ، ) ARABIC COMMA
U+060D ( ؍ ) ARABIC DATE SEPARATOR
U+07F8 ( ߸ ) NKO COMMA
U+1802 ( ᠂ ) MONGOLIAN COMMA
U+1808 ( ᠈ ) MONGOLIAN MANCHU COMMA
U+2013 ( – ) EN DASH
U+2014 ( — ) EM DASH
U+3001 ( 、 ) IDEOGRAPHIC COMMA
U+FE10 ( ︐ ) PRESENTATION FORM FOR VERTICAL COMMA
U+FE11 ( ︑ ) PRESENTATION FORM FOR VERTICAL IDEOGRAPHIC COMMA
U+FE13 ( ︓ ) PRESENTATION FORM FOR VERTICAL COLON
U+FE31 ( ︱ ) PRESENTATION FORM FOR VERTICAL EM DASH
U+FE32 ( ︲ ) PRESENTATION FORM FOR VERTICAL EN DASH
U+FE50 ( ﹐ ) SMALL COMMA
U+FE51 ( ﹑ ) SMALL IDEOGRAPHIC COMMA
U+FE55 ( ﹕ ) SMALL COLON
U+FE58 ( ﹘ ) SMALL EM DASH
U+FE63 ( ﹣ ) SMALL HYPHEN-MINUS
U+FF0C ( , ) FULLWIDTH COMMA
U+FF0D ( - ) FULLWIDTH HYPHEN-MINUS
U+FF1A ( : ) FULLWIDTH COLON
U+FF64 ( 、 ) HALFWIDTH IDEOGRAPHIC COMMA
STerm
Sentence_Terminal = Yes
Close
General_Category = Open_Punctuation, or
General_Category = Close_Punctuation, or
Line_Break = Quotation
and not U+05F3 ( ׳ ) HEBREW PUNCTUATION GERESH
and ATerm = No
and STerm = No
Other
All other characters
Implementations§
Source§impl SentenceBreak
impl SentenceBreak
Sourcepub fn of(ch: char) -> SentenceBreak
pub fn of(ch: char) -> SentenceBreak
Find the character Sentence_Break
property value.
Trait Implementations§
Source§impl CharProperty for SentenceBreak
impl CharProperty for SentenceBreak
Source§fn prop_abbr_name() -> &'static str
fn prop_abbr_name() -> &'static str
The abbreviated name of the property.
Source§fn prop_long_name() -> &'static str
fn prop_long_name() -> &'static str
The long name of the property.
Source§fn prop_human_name() -> &'static str
fn prop_human_name() -> &'static str
The human-readable name of the property.
Source§impl Clone for SentenceBreak
impl Clone for SentenceBreak
Source§fn clone(&self) -> SentenceBreak
fn clone(&self) -> SentenceBreak
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SentenceBreak
impl Debug for SentenceBreak
Source§impl Default for SentenceBreak
impl Default for SentenceBreak
Source§impl Display for SentenceBreak
impl Display for SentenceBreak
Source§impl EnumeratedCharProperty for SentenceBreak
impl EnumeratedCharProperty for SentenceBreak
Source§fn all_values() -> &'static [SentenceBreak]
fn all_values() -> &'static [SentenceBreak]
Exhaustive list of all property values.
Source§fn human_name(&self) -> &'static str
fn human_name(&self) -> &'static str
The human-readable name of the property value.
Source§impl FromStr for SentenceBreak
impl FromStr for SentenceBreak
Source§impl Hash for SentenceBreak
impl Hash for SentenceBreak
Source§impl PartialEq for SentenceBreak
impl PartialEq for SentenceBreak
Source§impl TotalCharProperty for SentenceBreak
impl TotalCharProperty for SentenceBreak
impl Copy for SentenceBreak
impl Eq for SentenceBreak
impl StructuralPartialEq for SentenceBreak
Auto Trait Implementations§
impl Freeze for SentenceBreak
impl RefUnwindSafe for SentenceBreak
impl Send for SentenceBreak
impl Sync for SentenceBreak
impl Unpin for SentenceBreak
impl UnwindSafe for SentenceBreak
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)