API Guides > ConceptRT 3.x

Detailed Description

Functions

bool ValBool (PCChar8 text)
 Convert the text in bool value. More...
 
Int32 ValInt (PCChar8 text, Int32 base=DefaultBase)
 Convert the text in integer value. More...
 
UInt32 ValUInt (PCChar8 text, Int32 base=DefaultBase)
 Convert the text in integer value. More...
 
Int32 ValIntBaseC (PCChar8 text)
 Convert the text in integer value. Process the constants according C-style marker : 123 -> decimal, 045 -> Octal, 0x7a -> hexadecimal. More...
 
Int64 ValInt64 (PCChar8 text)
 Convert the text in integer value. More...
 
UInt64 ValUInt64 (PCChar8 text)
 Convert the text in integer value. More...
 
Float64 ValFloat (PCChar8 text)
 Convert the text in float value. More...
 
bool IsBool (PCChar8 text)
 Query if the text contains a bool value. More...
 
bool IsInt (PCChar8 text, Int32 base=DefaultBase)
 Query if the text contains an interger value. More...
 
bool IsFloat (PCChar8 text)
 Query if the text contains a float value. More...
 
void CheckBool (PCChar8 text)
 Check bool. Raise an exception whenever the string doesn't contains a bool value. More...
 
void CheckInt (PCChar8 text, Int32 base=DefaultBase)
 Check int. Raise an exception whenever the string doesn't contains an integer value. More...
 
void CheckFloat (PCChar8 text)
 Check float. Raise an exception whenever the string doesn't contains a float value. More...
 

Function Documentation

void CheckBool ( PCChar8  text)

Check bool. Raise an exception whenever the string doesn't contains a bool value.

Parameters
textThe text.
RT Exceptions:
RT_ERROR_CHECK_FAILD
void CheckFloat ( PCChar8  text)

Check float. Raise an exception whenever the string doesn't contains a float value.

Parameters
textThe text.
RT Exceptions:
RT_ERROR_CHECK_FAILD
void CheckInt ( PCChar8  text,
Int32  base = DefaultBase 
)

Check int. Raise an exception whenever the string doesn't contains an integer value.

Parameters
textThe text.
base(optional) the base.
RT Exceptions:
RT_ERROR_CHECK_FAILD
bool IsBool ( PCChar8  text)

Query if the text contains a bool value.

Parameters
textThe text.
Returns
true if bool, false if not.
bool IsFloat ( PCChar8  text)

Query if the text contains a float value.

Parameters
textThe text.
Returns
true if float, false if not.
bool IsInt ( PCChar8  text,
Int32  base = DefaultBase 
)

Query if the text contains an interger value.

Parameters
textThe text.
base(optional) the base.
Returns
true if int, false if not.
bool ValBool ( PCChar8  text)

Convert the text in bool value.

Parameters
textThe text.
Returns
The bool value.
RT Exceptions:
RT_ERROR_BAD_PARAMETER
Float64 ValFloat ( PCChar8  text)

Convert the text in float value.

Parameters
textThe text.
Returns
The Float64 value.
Int32 ValInt ( PCChar8  text,
Int32  base = DefaultBase 
)

Convert the text in integer value.

Parameters
textThe text.
base(optional) the base.
Returns
The Int32 value.
Int64 ValInt64 ( PCChar8  text)

Convert the text in integer value.

Parameters
textThe text.
Returns
The Int64 value.
Int32 ValIntBaseC ( PCChar8  text)

Convert the text in integer value. Process the constants according C-style marker : 123 -> decimal, 045 -> Octal, 0x7a -> hexadecimal.

Parameters
textThe text.
Returns
The Int32 value.
UInt32 ValUInt ( PCChar8  text,
Int32  base = DefaultBase 
)

Convert the text in integer value.

Parameters
textThe text.
base(optional) the base.
Returns
The Int32 value.
UInt64 ValUInt64 ( PCChar8  text)

Convert the text in integer value.

Parameters
textThe text.
Returns
The Int64 value.