https://learn.microsoft.com/en-us/dotnet/api/system.globalization.stringinfo.getnexttextelementlength?view=net-10.0
StringInfo.GetNextTextElementLength Method (System.Globalization) | Microsoft Learn
Returns the length of the first text element (extended grapheme cluster) that occurs in the input span.
methodsystemglobalizationmicrosoftlearn