Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SpanRuneEnumerator.cs
Go to the documentation of this file.
1namespace System.Text;
2
3public ref struct SpanRuneEnumerator
4{
6
7 private Rune _current;
8
9 public Rune Current => _current;
10
12 {
14 _current = default(Rune);
15 }
16
18 {
19 return this;
20 }
21
22 public bool MoveNext()
23 {
25 {
26 _current = default(Rune);
27 return false;
28 }
30 if (num < 0)
31 {
32 num = Rune.ReplacementChar.Value;
33 }
34 _current = Rune.UnsafeCreate((uint)num);
36 return true;
37 }
38}
ReadOnlySpan< T > Slice(int start)
int Utf16SequenceLength
Definition Rune.cs:55
static int ReadFirstRuneFromUtf16Buffer(ReadOnlySpan< char > input)
Definition Rune.cs:432
static Rune UnsafeCreate(uint scalarValue)
Definition Rune.cs:643
static Rune ReplacementChar
Definition Rune.cs:53
SpanRuneEnumerator(ReadOnlySpan< char > buffer)