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

◆ MatchWord()

static bool System.DateTimeParse.MatchWord ( ref __DTString str,
string target )
inlinestaticprivate

Definition at line 671 of file DateTimeParse.cs.

672 {
673 if (target.Length > str.Value.Length - str.Index)
674 {
675 return false;
676 }
677 if (str.CompareInfo.Compare(str.Value.Slice(str.Index, target.Length), target, CompareOptions.IgnoreCase) != 0)
678 {
679 return false;
680 }
681 int num = str.Index + target.Length;
682 if (num < str.Value.Length)
683 {
684 char c = str.Value[num];
685 if (char.IsLetter(c))
686 {
687 return false;
688 }
689 }
690 str.Index = num;
691 if (str.Index < str.Length)
692 {
693 str.m_current = str.Value[str.Index];
694 }
695 return true;
696 }

References System.str.

Referenced by System.DateTimeParse.GetTimeZoneName().