C# Class Henchmen.Lua.Helpers

Exibir arquivo Open project: henchmeninteractive/HenchLua

Public Methods

Method Description
CheckOpt ( Value value, LString opts ) : int
CheckOpt ( Value value, LString defaultArg, LString opts ) : int
CheckOpt ( Value value, int defaultRet, LString opts ) : int

Private Methods

Method Description
CeilLog2 ( int x ) : int
FbToInt ( int x ) : int
GetMantAndExp ( double n, double &mant, int &exp ) : void
IsSpace ( byte ch ) : bool
Lower ( byte ch ) : byte
MemEq ( byte b0, int idx0, byte b1, int idx1, int len ) : bool
NumToStr ( byte buf, int index, double n, int precision = 6 ) : int
NumToStrDec ( byte buf, int index, double n, int precision ) : int
NumToStrSci ( byte buf, int index, double n, double mant, int exp, int precision ) : int
ParseDigit ( byte ch, int radix ) : int
ReadDigits ( byte str, int &index, int endIndex, int radix, int &length ) : double
ReadSign ( byte str, int &index, int endIndex, bool allowPlus = true ) : int
SetBufStr ( byte buf, int index, string s ) : int
SkipSpace ( byte str, int &index, int endIndex ) : void
StrToInt ( byte str, int index, int count, double &num, int radix = 10 ) : bool
StrToNum ( byte str, int index, int count, double &num ) : bool
StrToNum ( byte str, int &index, int endIndex, int radix, bool allowDecimal, byte expCharLwr ) : double?

Method Details

CheckOpt() public static method

public static CheckOpt ( Value value, LString opts ) : int
value Value
opts LString
return int

CheckOpt() public static method

public static CheckOpt ( Value value, LString defaultArg, LString opts ) : int
value Value
defaultArg LString
opts LString
return int

CheckOpt() public static method

public static CheckOpt ( Value value, int defaultRet, LString opts ) : int
value Value
defaultRet int
opts LString
return int