Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SpanLineEnumerator.cs
Go to the documentation of this file.
1namespace System.Text;
2
3public ref struct SpanLineEnumerator
4{
6
8
9 private bool _isEnumeratorActive;
10
12
19
21 {
22 return this;
23 }
24
25 public bool MoveNext()
26 {
28 {
29 return false;
30 }
31 int stride;
32 int num = string.IndexOfNewlineChar(_remaining, out stride);
33 if (num >= 0)
34 {
35 _current = _remaining.Slice(0, num);
36 _remaining = _remaining.Slice(num + stride);
37 }
38 else
39 {
42 _isEnumeratorActive = false;
43 }
44 return true;
45 }
46}
ReadOnlySpan< T > Slice(int start)
SpanLineEnumerator(ReadOnlySpan< char > buffer)