3DRadSpace  v1.0.0a
Scripting documentation
_3DRadSpaceDll.SafeConverter Class Reference

Class that allows safe conversions between numeric types and strings. More...

Static Public Member Functions

static int IntFromString (string s)
 Try parsing an integer from a string. More...
 
static int IntFromString (object o)
 Converts an object to a string. More...
 
static int SingleNumberFromChar (char c)
 
static bool BoolFromString (string b)
 Converts a string to a bool More...
 
static float FloatFromString (string f)
 
static string BoolToString (bool b)
 Converts a bool to a string. More...
 
static string IntToString (int num)
 
static string FloatToString (float f)
 

Detailed Description

Class that allows safe conversions between numeric types and strings.

Member Function Documentation

◆ BoolFromString()

static bool _3DRadSpaceDll.SafeConverter.BoolFromString ( string  b)
static

Converts a string to a bool

Parameters
b
Returns

◆ BoolToString()

static string _3DRadSpaceDll.SafeConverter.BoolToString ( bool  b)
static

Converts a bool to a string.

Parameters
b
Returns

◆ FloatFromString()

static float _3DRadSpaceDll.SafeConverter.FloatFromString ( string  f)
static

Parameters
f
Returns

◆ FloatToString()

static string _3DRadSpaceDll.SafeConverter.FloatToString ( float  f)
static

Parameters
f
Returns

◆ IntFromString() [1/2]

static int _3DRadSpaceDll.SafeConverter.IntFromString ( object  o)
static

Converts an object to a string.

Parameters
o
Returns

◆ IntFromString() [2/2]

static int _3DRadSpaceDll.SafeConverter.IntFromString ( string  s)
static

Try parsing an integer from a string.

Parameters
s
Returns

◆ IntToString()

static string _3DRadSpaceDll.SafeConverter.IntToString ( int  num)
static

Parameters
num
Returns

◆ SingleNumberFromChar()

static int _3DRadSpaceDll.SafeConverter.SingleNumberFromChar ( char  c)
static

Parameters
c
Returns