C# 클래스 IntXLib.ParserBase

Base class for parsers. Contains default implementations of parse operation over IntX instances.
상속: IParser
파일 보기 프로젝트 열기: devoyster/IntXLib

공개 메소드들

메소드 설명
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.

메소드 상세

Parse() 공개 메소드

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).
리턴 IntX

Parse() 공개 메소드

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.
리턴 uint

ParserBase() 공개 메소드

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