C# Class BooRunner.Tools.StringConverterBase

Base class for ToString converters. Contains default implementations of convert operation over BigInteger instances.
Inheritance: IStringConverter
Afficher le fichier Open project: juanplopes/euler

Méthodes publiques

Méthode Description
StringConverterBase ( IStringConverter pow2StringConverter ) : System

Creates new StringConverterBase instance.

ToString ( BigInteger intX, uint numberBase, char alphabet ) : string

Returns string representation of BigInteger object in given base.

ToString ( uint digits, uint length, uint numberBase, uint &outputLength ) : uint[]

Converts digits from internal representaion into given base.

Method Details

StringConverterBase() public méthode

Creates new StringConverterBase instance.
public StringConverterBase ( IStringConverter pow2StringConverter ) : System
pow2StringConverter IStringConverter Converter for pow2 case.
Résultat System

ToString() public méthode

Returns string representation of BigInteger object in given base.
is less then 2 or is too big to fit in string.
public ToString ( BigInteger intX, uint numberBase, char alphabet ) : string
intX BigInteger Big integer to convert.
numberBase uint Base of system in which to do output.
alphabet char Alphabet which contains chars used to represent big integer, char position is coresponding digit value.
Résultat string

ToString() public méthode

Converts digits from internal representaion into given base.
public ToString ( uint digits, uint length, uint numberBase, uint &outputLength ) : uint[]
digits uint Big integer digits.
length uint Big integer length.
numberBase uint Base to use for output.
outputLength uint Calculated output length (will be corrected inside).
Résultat uint[]