Table of Contents

Method GetGraphemeCount

Namespace
Terminal.Gui.Drawing
Assembly
Terminal.Gui.dll

GetGraphemeCount(string)

Counts the number of grapheme clusters in a string without allocating intermediate collections.

public static int GetGraphemeCount(string text)

Parameters

text string

The string to count graphemes in.

Returns

int

The number of grapheme clusters, or 0 if the string is null or empty.