Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
StringRuneEnumerator.cs
Go to the documentation of this file.
3
4namespace System.Text;
5
7{
8 private readonly string _string;
9
10 private Rune _current;
11
12 private int _nextIndex;
13
15
16 object? IEnumerator.Current => _current;
17
18 internal StringRuneEnumerator(string value)
19 {
20 _string = value;
21 _current = default(Rune);
22 _nextIndex = 0;
23 }
24
26 {
27 return this;
28 }
29
30 public bool MoveNext()
31 {
32 if ((uint)_nextIndex >= _string.Length)
33 {
34 _current = default(Rune);
35 return false;
36 }
38 {
40 }
42 return true;
43 }
44
46 {
47 }
48
50 {
51 return this;
52 }
53
58
60 {
61 _current = default(Rune);
62 _nextIndex = 0;
63 }
64}
new IEnumerator< T > GetEnumerator()
int Utf16SequenceLength
Definition Rune.cs:55
static Rune ReplacementChar
Definition Rune.cs:53
static bool TryGetRuneAt(string input, int index, out Rune value)
Definition Rune.cs:630