Method DecodeLastRune | Terminal.Gui v2 (original) (raw)

Namespace

Terminal.Gui

Assembly

Terminal.Gui.dll

DecodeLastRune(string, int)

Unpacks the last UTF-8 encoding in the string.

public static (Rune rune, int size) DecodeLastRune(this string str, int end = -1)

Parameters

str string

The string to decode.

end int

Index in string to stop at; if -1, use the buffer length.

Returns

(Rune rune, int size)

Remarks

This is a Terminal.Gui extension method to string to support TUI text manipulation.