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

◆ ParseDigits() [2/2]

static bool System.DateTimeParse.ParseDigits ( ref __DTString str,
int minDigitLen,
int maxDigitLen,
out int result )
inlinestaticpackage

Definition at line 2722 of file DateTimeParse.cs.

2723 {
2724 int num = 0;
2725 int index = str.Index;
2726 int i;
2727 for (i = 0; i < maxDigitLen; i++)
2728 {
2729 if (!str.GetNextDigit())
2730 {
2731 str.Index--;
2732 break;
2733 }
2734 num = num * 10 + str.GetDigit();
2735 }
2736 result = num;
2737 if (i < minDigitLen)
2738 {
2739 str.Index = index;
2740 return false;
2741 }
2742 return true;
2743 }

References System.index, and System.str.