C# 클래스 OpenMinecraft.Radix

Radix is a convertor class for converting numbers to different radices e.g. display the number 1000 in base 16
파일 보기 프로젝트 열기: N3X15/MineEdit

공개 메소드들

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