C# Класс OpenMinecraft.Radix

Radix is a convertor class for converting numbers to different radices e.g. display the number 1000 in base 16
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
CheckArg ( long radix, bool sym ) : void

CheckArg checks the arguments for the encoder and decoder calls

Описание методов

Decode() публичный статический Метод

public static Decode ( string val, long radix, double &rv ) : void
val string
radix long
rv double
Результат void

Decode() публичный статический Метод

public static Decode ( string val, long radix, double &rv, bool sym ) : void
val string
radix long
rv double
sym bool
Результат void

Decode() публичный статический Метод

public static Decode ( string val, long radix, long &rv ) : void
val string
radix long
rv long
Результат void

Decode() публичный статический Метод

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
Результат void

Encode() публичный статический Метод

public static Encode ( double x, long radix ) : string
x double
radix long
Результат string

Encode() публичный статический Метод

public static Encode ( double x, long radix, bool sym ) : string
x double
radix long
sym bool
Результат string

Encode() публичный статический Метод

public static Encode ( long x, long radix ) : string
x long
radix long
Результат string

Encode() публичный статический Метод

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
Результат string

Spaces() публичный статический Метод

public static Spaces ( string val, int nr ) : string
val string
nr int
Результат string

Spaces() публичный статический Метод

public static Spaces ( string val, int nr, char sep ) : string
val string
nr int
sep char
Результат string