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

◆ GetRepeatCount()

int System.__DTString.GetRepeatCount ( )
inlinepackage

Definition at line 295 of file __DTString.cs.

296 {
297 char c = Value[Index];
298 int i;
299 for (i = Index + 1; i < Length && Value[i] == c; i++)
300 {
301 }
302 int result = i - Index;
303 Index = i - 1;
304 return result;
305 }
ReadOnlySpan< char > Value
Definition __DTString.cs:8

References System.__DTString.Index, System.__DTString.Length, and System.__DTString.Value.