# SentenceBreakClass

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/media/text_formatting/unicode/enum-sentencebreakclass/

**enum** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
enum SentenceBreakClass
```

Sentence_Break property values, as defined by UAX #29.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/unicode/sentence_break_class.rs#L7)

## Members

- [`Other`](#variant-other)
- [`CarriageReturn`](#variant-carriagereturn)
- [`LineFeed`](#variant-linefeed)
- [`Extend`](#variant-extend)
- [`Sep`](#variant-sep)
- [`Format`](#variant-format)
- [`Sp`](#variant-sp)
- [`Lower`](#variant-lower)
- [`Upper`](#variant-upper)
- [`OLetter`](#variant-oletter)
- [`Numeric`](#variant-numeric)
- [`ATerm`](#variant-aterm)
- [`SContinue`](#variant-scontinue)
- [`STerm`](#variant-sterm)
- [`Close`](#variant-close)
- [`COUNT`](#assoc_const-count)
- [`from_u32`](#function-from_u32)

<a id="variant-other"></a>

### Other

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/unicode/sentence_break_class.rs#L13)

<a id="variant-carriagereturn"></a>

### CarriageReturn

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/unicode/sentence_break_class.rs#L18)

<a id="variant-linefeed"></a>

### LineFeed

```rust
LineFeed = 2
```

U+000A LINE FEED. Ends a sentence.

Property value alias: `LF`

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/unicode/sentence_break_class.rs#L22)

<a id="variant-extend"></a>

### Extend

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/unicode/sentence_break_class.rs#L27)

<a id="variant-sep"></a>

### Sep

```rust
Sep = 4
```

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

Property value alias: `SE`

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/unicode/sentence_break_class.rs#L31)

<a id="variant-format"></a>

### Format

```rust
Format = 5
```

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

Property value alias: `FO`

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/unicode/sentence_break_class.rs#L36)

<a id="variant-sp"></a>

### Sp

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/unicode/sentence_break_class.rs#L41)

<a id="variant-lower"></a>

### Lower

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/unicode/sentence_break_class.rs#L46)

<a id="variant-upper"></a>

### Upper

```rust
Upper = 8
```

An uppercase or titlecase letter.

Property value alias: `UP`

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/unicode/sentence_break_class.rs#L50)

<a id="variant-oletter"></a>

### OLetter

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/unicode/sentence_break_class.rs#L55)

<a id="variant-numeric"></a>

### Numeric

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/unicode/sentence_break_class.rs#L60)

<a id="variant-aterm"></a>

### ATerm

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/unicode/sentence_break_class.rs#L65)

<a id="variant-scontinue"></a>

### SContinue

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/unicode/sentence_break_class.rs#L70)

<a id="variant-sterm"></a>

### STerm

```rust
STerm = 13
```

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

Property value alias: `ST`

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/unicode/sentence_break_class.rs#L74)

<a id="variant-close"></a>

### Close

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/unicode/sentence_break_class.rs#L79)

<a id="assoc_const-count"></a>

### COUNT

```rust
const COUNT: usize
```

The number of values.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/unicode/sentence_break_class.rs#L84)

<a id="function-from_u32"></a>

### from_u32

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/unicode/sentence_break_class.rs#L89)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ResourceKeyObject`](/docs/0.5.0/api/ferroui-base/controls/trait-resourcekeyobject/)
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-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](/docs/0.5.0/api/).
