C# Class IntXLib.ParserBase

Base class for parsers. Contains default implementations of parse operation over IntX instances.
Inheritance: IParser
Afficher le fichier Open project: devoyster/IntXLib

Méthodes publiques

Méthode Description
Parse ( string value, uint numberBase, uint>.IDictionary charToDigits, bool checkFormat ) : IntX

Parses provided string representation of IntX object.

Parse ( string value, int startIndex, int endIndex, uint numberBase, uint>.IDictionary charToDigits, uint digitsRes ) : uint

Parses provided string representation of IntX object.

ParserBase ( IParser pow2Parser ) : System

Creates new ParserBase instance.

Method Details

Parse() public méthode

Parses provided string representation of IntX object.
is a null reference. is less then 2 or more then 16. is not in valid format.
public Parse ( string value, uint numberBase, uint>.IDictionary charToDigits, bool checkFormat ) : IntX
value string Number as string.
numberBase uint Number base.
charToDigits uint>.IDictionary Char->digit dictionary.
checkFormat bool Check actual format of number (0 or 0x at start).
Résultat IntX

Parse() public méthode

Parses provided string representation of IntX object.
public Parse ( string value, int startIndex, int endIndex, uint numberBase, uint>.IDictionary charToDigits, uint digitsRes ) : uint
value string Number as string.
startIndex int Index inside string from which to start.
endIndex int Index inside string on which to end.
numberBase uint Number base.
charToDigits uint>.IDictionary Char->digit dictionary.
digitsRes uint Resulting digits.
Résultat uint

ParserBase() public méthode

Creates new ParserBase instance.
public ParserBase ( IParser pow2Parser ) : System
pow2Parser IParser Parser for pow2 case.
Résultat System