MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GraphemeClusters

Method GraphemeClusters

Source/Engine/Utilities/StringUtils.cs:231–238  ·  view source on GitHub ↗
(this string s)

Source from the content-addressed store, hash-verified

229 }
230
231 private static IEnumerable<string> GraphemeClusters(this string s)
232 {
233 var enumerator = System.Globalization.StringInfo.GetTextElementEnumerator(s);
234 while (enumerator.MoveNext())
235 {
236 yield return (string)enumerator.Current;
237 }
238 }
239
240 /// <summary>
241 /// Reverses the specified input string.

Callers 1

ReverseMethod · 0.80

Calls 1

MoveNextMethod · 0.45

Tested by

no test coverage detected