Method GetGraphemeCount
GetGraphemeCount(string)
Counts the number of grapheme clusters in a string without allocating intermediate collections.
public static int GetGraphemeCount(string text)
Parameters
textstringThe string to count graphemes in.
Returns
- int
The number of grapheme clusters, or 0 if the string is null or empty.