GraphemeBreak enumv0.1.0
The grapheme break class of a scalar value.
pub enum GraphemeBreak: int32 {
Any = 0,
CarriageReturn = 1,
LineFeed = 2,
Control = 3,
Extend = 4,
ZeroWidthJoiner = 5,
RegionalIndicator = 6,
Prepend = 7,
SpacingMark = 8,
HangulL = 9,
HangulV = 10,
HangulT = 11,
HangulLV = 12,
HangulLVT = 13
}
Copy.
The ordinals match the generated table and must not be reordered.
Cases
| Name | Value | Description |
|---|---|---|
Any | 0 | Everything with no class of its own. |
CarriageReturn | 1 | A carriage return, which joins only the line feed after it. |
LineFeed | 2 | A line feed. |
Control | 3 | A control character, which stands alone. |
Extend | 4 | A mark that extends the cluster before it. |
ZeroWidthJoiner | 5 | The zero-width joiner, which is what glues emoji sequences. |
RegionalIndicator | 6 | A regional indicator, half of a flag. |
Prepend | 7 | A prefix that binds to what follows it. |
SpacingMark | 8 | A spacing mark, kept with what precedes it. |
HangulL | 9 | A Hangul leading consonant. |
HangulV | 10 | A Hangul vowel. |
HangulT | 11 | A Hangul trailing consonant. |
HangulLV | 12 | A Hangul LV syllable. |
HangulLVT | 13 | A Hangul LVT syllable. |
Related
GraphemeBreakOf
pub func GraphemeBreakOf(scalar: char32) -> GraphemeBreak
The break class of scalar.
Parameters
| Name | Type | Description |
|---|---|---|
scalar | char32 | the scalar value to classify |
Returns: its grapheme cluster break property
IsPictographic
pub func IsPictographic(scalar: char32) -> bool
Whether scalar is an extended pictograph: the emoji and everything reserved to become one.
Parameters
| Name | Type | Description |
|---|---|---|
scalar | char32 | the scalar value to test |
Returns: whether it has the Extended_Pictographic property