Table of Contents

Class RuneExtensions

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Extends Rune to support TUI text manipulation.

public static class RuneExtensions
Inheritance
RuneExtensions
Inherited Members

Fields

MaxUnicodeCodePoint

Maximum Unicode code point.

Methods

CanBeEncodedAsRune(byte[])

Reports if the provided array of bytes can be encoded as UTF-8.

DecodeSurrogatePair(Rune, out char[])

Attempts to decode the rune as a surrogate pair to UTF-16.

Encode(Rune, byte[], int, int)

Writes into the destination buffer starting at offset the UTF8 encoded version of the rune.

EncodeSurrogatePair(char, char, out Rune)

Attempts to encode (as UTF-16) a surrogate pair.

GetColumns(Rune)

Gets the number of columns the rune occupies in the terminal.

GetEncodingLength(Rune, Encoding)

Get number of bytes required to encode the rune, based on the provided encoding.

IsCombiningMark(Rune)

Returns true if the rune is a combining character.

IsSurrogatePair(Rune)

Reports whether a rune is a surrogate code point.

MakePrintable(Rune)

Ensures the rune is not a control character and can be displayed by translating characters below 0x20 to equivalent, printable, Unicode chars.