(this string s)
| 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. |