C# Class OpenMinecraft.Radix

Radix is a convertor class for converting numbers to different radices e.g. display the number 1000 in base 16
Afficher le fichier Open project: N3X15/MineEdit

Méthodes publiques

Méthode Description
Decode ( string val, long radix, double &rv ) : void
Decode ( string val, long radix, double &rv, bool sym ) : void
Decode ( string val, long radix, long &rv ) : void
Decode ( string val, long radix, long &rv, bool sym ) : void

Decoder for a string to a long with the base [radix]. if sym is true the number will be converted from a generic symbolic notation.

Encode ( double x, long radix ) : string
Encode ( double x, long radix, bool sym ) : string
Encode ( long x, long radix ) : string
Encode ( long x, long radix, bool sym ) : string

Encoder for a long to a string with the base [radix]. if sym is true the number will be converted to a generic symbolic notation.

Spaces ( string val, int nr ) : string
Spaces ( string val, int nr, char sep ) : string

Private Methods

Méthode Description
CheckArg ( long radix, bool sym ) : void

CheckArg checks the arguments for the encoder and decoder calls

Method Details

Decode() public static méthode

public static Decode ( string val, long radix, double &rv ) : void
val string
radix long
rv double
Résultat void

Decode() public static méthode

public static Decode ( string val, long radix, double &rv, bool sym ) : void
val string
radix long
rv double
sym bool
Résultat void

Decode() public static méthode

public static Decode ( string val, long radix, long &rv ) : void
val string
radix long
rv long
Résultat void

Decode() public static méthode

Decoder for a string to a long with the base [radix]. if sym is true the number will be converted from a generic symbolic notation.
public static Decode ( string val, long radix, long &rv, bool sym ) : void
val string
radix long
rv long
sym bool
Résultat void

Encode() public static méthode

public static Encode ( double x, long radix ) : string
x double
radix long
Résultat string

Encode() public static méthode

public static Encode ( double x, long radix, bool sym ) : string
x double
radix long
sym bool
Résultat string

Encode() public static méthode

public static Encode ( long x, long radix ) : string
x long
radix long
Résultat string

Encode() public static méthode

Encoder for a long to a string with the base [radix]. if sym is true the number will be converted to a generic symbolic notation.
public static Encode ( long x, long radix, bool sym ) : string
x long
radix long
sym bool
Résultat string

Spaces() public static méthode

public static Spaces ( string val, int nr ) : string
val string
nr int
Résultat string

Spaces() public static méthode

public static Spaces ( string val, int nr, char sep ) : string
val string
nr int
sep char
Résultat string