Table of Contents

Method DecodeSurrogatePair

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

DecodeSurrogatePair(Rune, out char[])

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

public static bool DecodeSurrogatePair(this Rune rune, out char[] chars)

Parameters

rune Rune

The rune to decode.

chars char[]

The chars if the rune is a surrogate pair. Null otherwise.

Returns

bool

true if the rune is a valid surrogate pair; false otherwise.

Remarks

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