C# Class OpenMinecraft.Radix

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

Public Methods

Method 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

Method Description
CheckArg ( long radix, bool sym ) : void

CheckArg checks the arguments for the encoder and decoder calls

Method Details

Decode() public static method

public static Decode ( string val, long radix, double &rv ) : void
val string
radix long
rv double
return void

Decode() public static method

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

Decode() public static method

public static Decode ( string val, long radix, long &rv ) : void
val string
radix long
rv long
return void

Decode() public static method

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
return void

Encode() public static method

public static Encode ( double x, long radix ) : string
x double
radix long
return string

Encode() public static method

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

Encode() public static method

public static Encode ( long x, long radix ) : string
x long
radix long
return string

Encode() public static method

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
return string

Spaces() public static method

public static Spaces ( string val, int nr ) : string
val string
nr int
return string

Spaces() public static method

public static Spaces ( string val, int nr, char sep ) : string
val string
nr int
sep char
return string