C# Class IntXLib.ParserBase

Base class for parsers. Contains default implementations of parse operation over IntX instances.
Inheritance: IParser
显示文件 Open project: devoyster/IntXLib

Public Methods

Method 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 method

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).
return IntX

Parse() public method

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.
return uint

ParserBase() public method

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