Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ MakeSeparatorList() [2/3]

void System.String.MakeSeparatorList ( string separator,
ref ValueListBuilder< int > sepListBuilder )
inlineprivate

Definition at line 2950 of file String.cs.

2951 {
2952 int length = separator.Length;
2953 for (int i = 0; i < Length; i++)
2954 {
2955 if (this[i] == separator[0] && length <= Length - i && (length == 1 || this.AsSpan(i, length).SequenceEqual(separator)))
2956 {
2957 sepListBuilder.Append(i);
2958 i += length - 1;
2959 }
2960 }
2961 }

References System.length, and System.String.Length.