Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Globalization.TimeSpanParse Class Reference

Classes

struct  StringParser
 
struct  TimeSpanRawInfo
 
struct  TimeSpanResult
 
struct  TimeSpanToken
 
struct  TimeSpanTokenizer
 

Static Package Functions

static long Pow10 (int pow)
 
static TimeSpan Parse (ReadOnlySpan< char > input, IFormatProvider formatProvider)
 
static bool TryParse (ReadOnlySpan< char > input, IFormatProvider formatProvider, out TimeSpan result)
 
static TimeSpan ParseExact (ReadOnlySpan< char > input, ReadOnlySpan< char > format, IFormatProvider formatProvider, TimeSpanStyles styles)
 
static bool TryParseExact (ReadOnlySpan< char > input, ReadOnlySpan< char > format, IFormatProvider formatProvider, TimeSpanStyles styles, out TimeSpan result)
 
static TimeSpan ParseExactMultiple (ReadOnlySpan< char > input, string[] formats, IFormatProvider formatProvider, TimeSpanStyles styles)
 
static bool TryParseExactMultiple (ReadOnlySpan< char > input, string[] formats, IFormatProvider formatProvider, TimeSpanStyles styles, out TimeSpan result)
 

Private Types

enum  TimeSpanStandardStyles : byte {
  None = 0 , Invariant = 1 , Localized = 2 , RequireFull = 4 ,
  Any = 3
}
 
enum  TTT : byte {
  None , End , Num , Sep ,
  NumOverflow
}
 

Static Private Member Functions

static bool TryTimeToTicks (bool positive, TimeSpanToken days, TimeSpanToken hours, TimeSpanToken minutes, TimeSpanToken seconds, TimeSpanToken fraction, out long result)
 
static bool TryParseTimeSpan (ReadOnlySpan< char > input, TimeSpanStandardStyles style, IFormatProvider formatProvider, ref TimeSpanResult result)
 
static bool ProcessTerminalState (ref TimeSpanRawInfo raw, TimeSpanStandardStyles style, ref TimeSpanResult result)
 
static bool ProcessTerminal_DHMSF (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_HM_S_D (ref TimeSpanRawInfo raw, TimeSpanStandardStyles style, ref TimeSpanResult result)
 
static bool ProcessTerminal_HM (ref TimeSpanRawInfo raw, TimeSpanStandardStyles style, ref TimeSpanResult result)
 
static bool ProcessTerminal_D (ref TimeSpanRawInfo raw, TimeSpanStandardStyles style, ref TimeSpanResult result)
 
static bool TryParseExactTimeSpan (ReadOnlySpan< char > input, ReadOnlySpan< char > format, IFormatProvider formatProvider, TimeSpanStyles styles, ref TimeSpanResult result)
 
static bool TryParseByFormat (ReadOnlySpan< char > input, ReadOnlySpan< char > format, TimeSpanStyles styles, ref TimeSpanResult result)
 
static bool ParseExactDigits (ref TimeSpanTokenizer tokenizer, int minDigitLength, out int result)
 
static bool ParseExactDigits (ref TimeSpanTokenizer tokenizer, int minDigitLength, int maxDigitLength, out int zeroes, out int result)
 
static bool ParseExactLiteral (ref TimeSpanTokenizer tokenizer, StringBuilder enquotedString)
 
static bool TryParseTimeSpanConstant (ReadOnlySpan< char > input, ref TimeSpanResult result)
 
static bool TryParseExactMultipleTimeSpan (ReadOnlySpan< char > input, string[] formats, IFormatProvider formatProvider, TimeSpanStyles styles, ref TimeSpanResult result)
 

Detailed Description

Definition at line 5 of file TimeSpanParse.cs.


The documentation for this class was generated from the following file: