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

Afficher le fichier Open project: martinbuberl/Netduino

Méthodes publiques

Méthode 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

Méthode 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 méthode

public static ParseToLong ( string value, NumeralSystem numeralSystem = NumeralSystem.Decimal ) : long
value string
numeralSystem NumeralSystem
Résultat long

ParseToULong() public static méthode

public static ParseToULong ( string value, NumeralSystem numeralSystem = NumeralSystem.Decimal ) : ulong
value string
numeralSystem NumeralSystem
Résultat ulong

TryParseDouble() public static méthode

public static TryParseDouble ( string value, double &result ) : bool
value string
result double
Résultat bool

TryParseLong() public static méthode

public static TryParseLong ( string value, long &result ) : bool
value string
result long
Résultat bool

TryParseUInt() public static méthode

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

TryParseULong() public static méthode

public static TryParseULong ( string value, ulong &result ) : bool
value string
result ulong
Résultat bool