public void MoveNext()
            {
                this.CharsConsumed += this.charsConsumed;
                var codePoint = CodePoint.DecodeFromUtf16At(this.source, this.CharsConsumed, out this.charsConsumed);

                this.CurrentType = CodePoint.GetGraphemeClusterClass(codePoint);
            }
Example #2
0
 /// <summary>
 /// Advances the enumerator to the next element of the collection.
 /// </summary>
 /// <returns>
 /// <see langword="true"/> if the enumerator was successfully advanced to the next element;
 /// <see langword="false"/> if the enumerator has passed the end of the collection.
 /// </returns>
 public bool MoveNext()
 {
     this.Current = CodePoint.DecodeFromUtf16At(this.source, 0, out int consumed);
     this.source  = this.source.Slice(consumed);
     return(consumed > 0);
 }