Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
TextElementEnumerator.cs
Go to the documentation of this file.
3
5
7{
8 private readonly string _str;
9
10 private readonly int _strStartIndex;
11
13
15
17
18 public object Current => GetTextElement();
19
20 public int ElementIndex
21 {
22 get
23 {
24 if (_currentTextElementOffset >= _str.Length)
25 {
27 }
29 }
30 }
31
32 internal TextElementEnumerator(string str, int startIndex)
33 {
34 _str = str;
36 Reset();
37 }
38
39 public bool MoveNext()
40 {
44 if (num >= _str.Length)
45 {
46 return false;
47 }
49 return true;
50 }
51
52 public string GetTextElement()
53 {
55 if (text == null)
56 {
57 if (_currentTextElementOffset >= _str.Length)
58 {
60 }
62 }
63 return text;
64 }
65
66 public void Reset()
67 {
71 }
72}
static string InvalidOperation_EnumOpCantHappen
Definition SR.cs:48
Definition SR.cs:7
static int GetLengthOfFirstUtf16ExtendedGraphemeCluster(ReadOnlySpan< char > input)