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

◆ ProcessTerminalState()

static bool System.Globalization.TimeSpanParse.ProcessTerminalState ( ref TimeSpanRawInfo raw,
TimeSpanStandardStyles style,
ref TimeSpanResult result )
inlinestaticprivate

Definition at line 800 of file TimeSpanParse.cs.

801 {
802 if (raw._lastSeenTTT == TTT.Num)
803 {
804 TimeSpanToken tok = default(TimeSpanToken);
805 tok._ttt = TTT.Sep;
806 if (!raw.ProcessToken(ref tok, ref result))
807 {
808 return result.SetBadTimeSpanFailure();
809 }
810 }
811 return raw._numCount switch
812 {
813 1 => ProcessTerminal_D(ref raw, style, ref result),
814 2 => ProcessTerminal_HM(ref raw, style, ref result),
815 3 => ProcessTerminal_HM_S_D(ref raw, style, ref result),
816 4 => ProcessTerminal_HMS_F_D(ref raw, style, ref result),
817 5 => ProcessTerminal_DHMSF(ref raw, style, ref result),
818 _ => result.SetBadTimeSpanFailure(),
819 };
820 }
static bool ProcessTerminal_HM(ref TimeSpanRawInfo raw, TimeSpanStandardStyles style, ref TimeSpanResult result)
static bool ProcessTerminal_HM_S_D(ref TimeSpanRawInfo raw, TimeSpanStandardStyles style, ref TimeSpanResult result)
static bool ProcessTerminal_HMS_F_D(ref TimeSpanRawInfo raw, TimeSpanStandardStyles style, ref TimeSpanResult result)
static bool ProcessTerminal_DHMSF(ref TimeSpanRawInfo raw, TimeSpanStandardStyles style, ref TimeSpanResult result)
static bool ProcessTerminal_D(ref TimeSpanRawInfo raw, TimeSpanStandardStyles style, ref TimeSpanResult result)

References System.Globalization.TimeSpanParse.ProcessTerminal_D(), System.Globalization.TimeSpanParse.ProcessTerminal_DHMSF(), System.Globalization.TimeSpanParse.ProcessTerminal_HM(), System.Globalization.TimeSpanParse.ProcessTerminal_HM_S_D(), and System.Globalization.TimeSpanParse.ProcessTerminal_HMS_F_D().

Referenced by System.Globalization.TimeSpanParse.TryParseTimeSpan().