PeachDrawing.Text
PeachDrawing.Text
RuneInterval Struct
An inclusive interval of Unicode scalar values: the code points a face is to be used for (CSS
unicode-range), or the ones its cmap covers.
public readonly record struct RuneInterval : System.IEquatable<PeachDrawing.Text.RuneInterval>
Implements System.IEquatable<RuneInterval>
Remarks
Both ends are System.Text.Runes, so a surrogate or an out-of-range value cannot be expressed.
| Constructors | |
|---|---|
| RuneInterval(Rune, Rune) | An inclusive interval of Unicode scalar values: the code points a face is to be used for (CSS unicode-range), or the ones its cmap covers. |
| Properties | |
|---|---|
| End | The last code point of the interval, which is inside it. |
| Start | The first code point of the interval. |
| Methods | |
|---|---|
| Contains(Rune) | Whether a character lies inside this interval, both ends included. |