C# Class Netduino.WebServer.Core.Utilities.Parser

ファイルを表示 Open project: martinbuberl/Netduino

Public Methods

Method Description
ParseToLong ( string value, NumeralSystem numeralSystem = NumeralSystem.Decimal ) : long
ParseToULong ( string value, NumeralSystem numeralSystem = NumeralSystem.Decimal ) : ulong
TryParseDouble ( string value, double &result ) : bool
TryParseLong ( string value, long &result ) : bool
TryParseUInt ( string value, uint &result, NumeralSystem numeralSystem = NumeralSystem.Decimal ) : bool
TryParseULong ( string value, ulong &result ) : bool

Private Methods

Method Description
CheckSeparator ( string value, string sep, int &start, int end ) : bool
CheckSign ( string value, int &start, int end, bool &hasSign, bool &isNeg ) : void
ParseNumberCore ( string value, int &start, int end, int maxDigits, int &numDigits, bool allowGroupSep ) : ulong

Parse the number beginning at str[start] up to maximal str[end].

SkipWhiteSpace ( string value, int &start, int &end ) : void
TryParseUInt64Core ( string value, bool parseHex, ulong &result, bool &sign ) : bool

Method Details

ParseToLong() public static method

public static ParseToLong ( string value, NumeralSystem numeralSystem = NumeralSystem.Decimal ) : long
value string
numeralSystem NumeralSystem
return long

ParseToULong() public static method

public static ParseToULong ( string value, NumeralSystem numeralSystem = NumeralSystem.Decimal ) : ulong
value string
numeralSystem NumeralSystem
return ulong

TryParseDouble() public static method

public static TryParseDouble ( string value, double &result ) : bool
value string
result double
return bool

TryParseLong() public static method

public static TryParseLong ( string value, long &result ) : bool
value string
result long
return bool

TryParseUInt() public static method

public static TryParseUInt ( string value, uint &result, NumeralSystem numeralSystem = NumeralSystem.Decimal ) : bool
value string
result uint
numeralSystem NumeralSystem
return bool

TryParseULong() public static method

public static TryParseULong ( string value, ulong &result ) : bool
value string
result ulong
return bool