C# Class AT.MIN.Tools

Show file Open project: mlnlover11/KopiLua-v5.1.5

Public Methods

Method Description
IsNumericType ( object o ) : bool

Determines whether the specified value is of numeric type.

IsPositive ( object Value, bool ZeroIsPositive ) : bool

Determines whether the specified value is positive.

ReplaceMetaChars ( string input ) : string

Replaces the string representations of meta chars with their corresponding character values.

ToInteger ( object Value, bool Round ) : object

Converts the specified values boxed type to its correpsonding integer type.

ToUnsigned ( object Value ) : object

Converts the specified values boxed type to its correpsonding unsigned type.

UnboxToLong ( object Value, bool Round ) : long
fprintf ( TextWriter Destination, string Format ) : void
printf ( string Format ) : void
sprintf ( string Format ) : string

Private Methods

Method Description
FormatHex ( string NativeFormat, bool Alternate, int FieldLength, int FieldPrecision, bool Left2Right, char Padding, object Value ) : string
FormatNumber ( string NativeFormat, bool Alternate, int FieldLength, int FieldPrecision, bool Left2Right, bool PositiveSign, bool PositiveSpace, char Padding, object Value ) : string
FormatOct ( string NativeFormat, bool Alternate, int FieldLength, int FieldPrecision, bool Left2Right, char Padding, object Value ) : string
ReplaceMetaCharsMatch ( Match m ) : string

Method Details

IsNumericType() public static method

Determines whether the specified value is of numeric type.
public static IsNumericType ( object o ) : bool
o object The object to check.
return bool

IsPositive() public static method

Determines whether the specified value is positive.
public static IsPositive ( object Value, bool ZeroIsPositive ) : bool
Value object The value.
ZeroIsPositive bool if set to true treats 0 as positive.
return bool

ReplaceMetaChars() public static method

Replaces the string representations of meta chars with their corresponding character values.
public static ReplaceMetaChars ( string input ) : string
input string The input.
return string

ToInteger() public static method

Converts the specified values boxed type to its correpsonding integer type.
public static ToInteger ( object Value, bool Round ) : object
Value object The value.
Round bool
return object

ToUnsigned() public static method

Converts the specified values boxed type to its correpsonding unsigned type.
public static ToUnsigned ( object Value ) : object
Value object The value.
return object

UnboxToLong() public static method

public static UnboxToLong ( object Value, bool Round ) : long
Value object
Round bool
return long

fprintf() public static method

public static fprintf ( TextWriter Destination, string Format ) : void
Destination System.IO.TextWriter
Format string
return void

printf() public static method

public static printf ( string Format ) : void
Format string
return void

sprintf() public static method

public static sprintf ( string Format ) : string
Format string
return string