NumberConverter Class Reference

Converts between strings and numbers. More...

List of all members.

Static Public Member Functions

static simba_size_t ConvertDouble32ToCharArray (simba_double32 in_num, simba_char *out_buffer)
 Converts in_num to a NUL-terminated array of characters and stores the result in out_buffer.
static simba_string ConvertDouble32ToString (simba_double32 in_num)
 Converts in_num into a simba_string.
static simba_wstring ConvertDouble32ToWString (simba_double32 in_num)
 Converts in_num into a simba_wstring.
static simba_size_t ConvertDouble64ToCharArray (simba_double64 in_num, simba_char *out_buffer)
 Converts in_num to a NUL-terminated array of characters and stores the result in out_buffer.
static simba_string ConvertDouble64ToString (simba_double64 in_num)
 Converts in_num into a simba_string.
static simba_wstring ConvertDouble64ToWString (simba_double64 in_num)
 Converts in_num into a simba_wstring.
template<typename T >
static bool ConvertFourDigitStringToInteger (const simba_char *in_source, T &out_result)
 Converts a four digit string to an integer.
template<typename T >
static void ConvertFourDigitStringToIntegerUnchecked (const simba_char *in_source, T &out_result)
 Converts a four digit string to an integer.
static simba_charConvertInt16ToString (simba_int16 in_num, simba_uint16 in_length, simba_char *io_buffer)
 Converts in_num into as ASCII string.
static simba_string ConvertInt16ToString (simba_int16 in_num)
 Converts in_num into a simba_string.
static simba_wstring ConvertInt16ToWString (simba_int16 in_num)
 Converts in_num into a simba_wstring.
static simba_charConvertInt32ToString (simba_int32 in_num, simba_uint16 in_length, simba_char *io_buffer)
 Converts in_num into as ASCII string.
static simba_string ConvertInt32ToString (simba_int32 in_num)
 Converts in_num into a simba_string.
static simba_wstring ConvertInt32ToWString (simba_int32 in_num)
 Converts in_num into a simba_wstring.
static simba_charConvertInt64ToString (simba_int64 in_num, simba_uint16 in_length, simba_char *io_buffer)
 Converts in_num into as ASCII string.
static simba_string ConvertInt64ToString (simba_int64 in_num)
 Converts in_num into a simba_string.
static simba_wstring ConvertInt64ToWString (simba_int64 in_num)
 Converts in_num into a simba_wstring.
static simba_charConvertInt8ToString (simba_int8 in_num, simba_uint16 in_length, simba_char *io_buffer)
 Converts in_num into as ASCII string.
static simba_string ConvertInt8ToString (simba_int8 in_num)
 Converts in_num into a simba_string.
static simba_wstring ConvertInt8ToWString (simba_int8 in_num)
 Converts in_num into a simba_wstring.
static simba_string ConvertIntNativeToString (simba_signed_native in_num)
 Converts in_num into a simba_string.
static simba_wstring ConvertIntNativeToWString (simba_signed_native in_num)
 Converts in_num into a simba_wstring.
template<typename T >
static T ConvertStringToFloatingPoint (const simba_string &in_source, bool in_throwOnTruncate=true)
 Converts in_source into a specified target Type.
template<typename T >
static T ConvertStringToFloatingPoint (const simba_char *in_source, bool in_throwOnTruncate=true)
 Converts in_source into a specified target Type.
template<typename T >
static T ConvertStringToFloatingPoint (const simba_char *in_source, simba_size_t in_length, bool in_throwOnTruncate)
 Converts in_source into a specified target Type.
static simba_int16 ConvertStringToInt16 (const simba_string &in_source, bool in_throwOnTruncate=true)
 Converts in_source into a simba_int16.
static simba_int16 ConvertStringToInt16 (const simba_char *in_source, simba_size_t in_length, bool in_throwOnTruncate)
 Converts in_source into a simba_int16.
static simba_int16 ConvertStringToInt16 (const simba_char *in_source, bool in_throwOnTruncate=true)
 Converts in_source into a simba_int16.
static simba_int32 ConvertStringToInt32 (const simba_string &in_source, bool in_throwOnTruncate=true)
 Converts in_source into a simba_int32.
static simba_int32 ConvertStringToInt32 (const simba_char *in_source, simba_size_t in_length, bool in_throwOnTruncate)
 Converts in_source into a simba_int32.
static simba_int32 ConvertStringToInt32 (const simba_char *in_source, bool in_throwOnTruncate=true)
 Converts in_source into a simba_int32.
static simba_int64 ConvertStringToInt64 (const simba_string &in_source, bool in_throwOnTruncate=true)
 Converts in_source into a simba_int64.
static simba_int64 ConvertStringToInt64 (const simba_char *in_source, simba_size_t in_length, bool in_throwOnTruncate=true)
 Converts in_source into a simba_int64.
static simba_int64 ConvertStringToInt64 (const simba_char *in_source, bool in_throwOnTruncate=true)
 Converts in_source into a simba_int64.
static simba_int8 ConvertStringToInt8 (const simba_string &in_source, bool in_throwOnTruncate=true)
static simba_int8 ConvertStringToInt8 (const simba_char *in_source, simba_size_t in_length, bool in_throwOnTruncate)
 Converts in_source into a simba_int8.
static simba_int8 ConvertStringToInt8 (const simba_char *in_source, bool in_throwOnTruncate=true)
 Converts in_source into a simba_int8.
template<typename T >
static T ConvertStringToIntegerTypeUnsafe (const simba_string &in_source)
 Converts in_source into the specified target type.
template<typename T >
static T ConvertStringToIntegerTypeUnsafe (const simba_char *in_source, simba_size_t in_length)
 Converts in_source into the specified target type.
template<typename T >
static T ConvertStringToIntegerTypeUnsafe (const simba_char *in_source)
 Converts in_source into the specified target type.
static simba_signed_native ConvertStringToIntNative (const simba_string &in_source, bool in_throwOnTruncate=true)
 Converts in_source into a simba_signed_native.
static simba_signed_native ConvertStringToIntNative (const simba_char *in_source, simba_size_t in_length, bool in_throwOnTruncate)
 Converts in_source into a simba_signed_native.
static simba_signed_native ConvertStringToIntNative (const simba_char *in_source, bool in_throwOnTruncate=true)
 Converts in_source into a simba_signed_native.
template<typename T >
static T ConvertStringToType (const simba_string &in_source, bool in_throwOnTruncate=true)
 Converts in_source into the specified target type.
template<typename T >
static T ConvertStringToType (const simba_char *in_source, simba_size_t in_length, bool in_throwOnTruncate=true)
 Converts in_source into the specified target type.
template<typename T >
static T ConvertStringToType (const simba_char *in_source, bool in_throwOnTruncate=true)
 Converts in_source into the specified target type.
static simba_uint16 ConvertStringToUInt16 (const simba_string &in_source, bool in_throwOnTruncate=true)
 Converts in_source into a simba_uint16.
static simba_uint16 ConvertStringToUInt16 (const simba_char *in_source, simba_size_t in_length, bool in_throwOnTruncate)
 Converts in_source into a simba_uint16.
static simba_uint16 ConvertStringToUInt16 (const simba_char *in_source, bool in_throwOnTruncate=true)
 Converts in_source into a simba_uint16.
static simba_uint32 ConvertStringToUInt32 (const simba_string &in_source, bool in_throwOnTruncate=true)
 Converts in_source into a simba_uint32.
static simba_uint32 ConvertStringToUInt32 (const simba_char *in_source, simba_size_t in_length, bool in_throwOnTruncate)
 Converts in_source into a simba_uint32.
static simba_uint32 ConvertStringToUInt32 (const simba_char *in_source, bool in_throwOnTruncate=true)
 Converts in_source into a simba_uint32.
static simba_uint64 ConvertStringToUInt64 (const simba_string &in_source, bool in_throwOnTruncate=true)
 Converts in_source into a simba_uint64.
static simba_uint64 ConvertStringToUInt64 (const simba_char *in_source, simba_size_t in_length, bool in_throwOnTruncate=true)
 Converts in_source into a simba_uint64.
static simba_uint64 ConvertStringToUInt64 (const simba_char *in_source, bool in_throwOnTruncate=true)
 Converts in_source into a simba_uint64.
static simba_uint8 ConvertStringToUInt8 (const simba_string &in_source, bool in_throwOnTruncate=true)
 Converts in_source into a simba_uint8.
static simba_uint8 ConvertStringToUInt8 (const simba_char *in_source, simba_size_t in_length, bool in_throwOnTruncate)
 Converts in_source into a simba_uint8.
static simba_uint8 ConvertStringToUInt8 (const simba_char *in_source, bool in_throwOnTruncate=true)
 Converts in_source into a simba_uint8.
static simba_unsigned_native ConvertStringToUIntNative (const simba_string &in_source, bool in_throwOnTruncate=true)
 Converts in_source into a simba_unsigned_native.
static simba_unsigned_native ConvertStringToUIntNative (const simba_char *in_source, simba_size_t in_length, bool in_throwOnTruncate)
 Converts in_source into a simba_unsigned_native.
static simba_unsigned_native ConvertStringToUIntNative (const simba_char *in_source, bool in_throwOnTruncate=true)
 Converts in_source into a simba_unsigned_native.
template<typename TypeT >
static simba_charConvertToString (TypeT in_num, simba_uint16 in_length, simba_char *io_buffer)
 Converts in_num into as ASCII string.
template<typename TypeT >
static simba_string ConvertToString (TypeT in_num)
 Converts in_num into a simba_string.
template<typename TypeT >
static simba_wstring ConvertToWString (TypeT in_num)
 Converts in_num into a simba_wstring.
template<typename T >
static bool ConvertTwoDigitStringToInteger (const simba_char *in_source, T &out_result)
 Converts a two digit string to an integer.
template<typename T >
static void ConvertTwoDigitStringToIntegerUnchecked (const simba_char *in_source, T &out_result)
 Converts a two digit string to an integer.
static simba_charConvertUInt16ToString (simba_uint16 in_num, simba_uint16 in_length, simba_char *io_buffer)
 Converts in_num into as ASCII string.
static simba_string ConvertUInt16ToString (simba_uint16 in_num)
 Converts in_num into a simba_string.
static simba_wstring ConvertUInt16ToWString (simba_uint16 in_num)
 Converts in_num into a simba_wstring.
static simba_charConvertUInt32ToString (simba_uint32 in_num, simba_uint16 in_length, simba_char *io_buffer)
 Converts in_num into as ASCII string.
static simba_string ConvertUInt32ToString (simba_uint32 in_num)
 Converts in_num into a simba_string.
static simba_wstring ConvertUInt32ToWString (simba_uint32 in_num)
 Converts in_num into a simba_wstring.
static simba_charConvertUInt64ToString (simba_uint64 in_num, simba_uint16 in_length, simba_char *io_buffer)
 Converts in_num into as ASCII string.
static simba_string ConvertUInt64ToString (simba_uint64 in_num)
 Converts in_num into a simba_string.
static simba_wstring ConvertUInt64ToWString (simba_uint64 in_num)
 Converts in_num into a simba_wstring.
static simba_charConvertUInt8ToString (simba_uint8 in_num, simba_uint16 in_length, simba_char *io_buffer)
 Converts in_num into as ASCII string.
static simba_string ConvertUInt8ToString (simba_uint8 in_num)
 Converts in_num into a simba_string.
static simba_wstring ConvertUInt8ToWString (simba_uint8 in_num)
 Converts in_num into a simba_wstring.
static simba_string ConvertUIntNativeToString (simba_unsigned_native in_num)
 Converts in_num into a simba_string.
static simba_wstring ConvertUIntNativeToWString (simba_unsigned_native in_num)
 Converts in_num into a simba_wstring.
static simba_double64 ConvertWStringToDouble (const simba_wstring &in_source, bool in_throwOnTruncate=true)
 Converts in_source into a simba_double64.
static simba_int16 ConvertWStringToInt16 (const simba_wstring &in_source, bool in_throwOnTruncate=true)
 Converts in_source into a simba_int16.
static simba_int32 ConvertWStringToInt32 (const simba_wstring &in_source, bool in_throwOnTruncate=true)
 Converts in_source into a simba_int32.
static simba_int64 ConvertWStringToInt64 (const simba_wstring &in_source, bool in_throwOnTruncate=true)
 Converts in_source into a simba_int64.
static simba_int8 ConvertWStringToInt8 (const simba_wstring &in_source, bool in_throwOnTruncate=true)
 Converts in_source into a simba_int8.
template<typename T >
static T ConvertWStringToIntegerTypeUnsafe (const simba_wstring &in_source)
 Converts in_source into the specified target type.
static simba_signed_native ConvertWStringToIntNative (const simba_wstring &in_source, bool in_throwOnTruncate=true)
 Converts in_source into a simba_signed_native.
static simba_double32 ConvertWStringToSingle (const simba_wstring &in_source, bool in_throwOnTruncate=true)
 Converts in_source into a simba_double32.
template<typename T >
static T ConvertWStringToType (const simba_wstring &in_source, bool in_throwOnTruncate=true)
 Converts in_source into the specified target type.
static simba_uint16 ConvertWStringToUInt16 (const simba_wstring &in_source, bool in_throwOnTruncate=true)
 Converts in_source into a simba_uint16.
static simba_uint32 ConvertWStringToUInt32 (const simba_wstring &in_source, bool in_throwOnTruncate=true)
 Converts in_source into a simba_uint32.
static simba_uint64 ConvertWStringToUInt64 (const simba_wstring &in_source, bool in_throwOnTruncate=true)
 Converts in_source into a simba_uint64.
static simba_uint8 ConvertWStringToUInt8 (const simba_wstring &in_source, bool in_throwOnTruncate=true)
 Converts in_source into a simba_uint8.
static simba_unsigned_native ConvertWStringToUIntNative (const simba_wstring &in_source, bool in_throwOnTruncate=true)
 Converts in_source into a simba_unsigned_native.
template<typename T >
static simba_uint8 GetNumberOfDigits (T in_value)
 Get the number of whole digits from in_value.
static bool IsDigit (simba_char in_char)
 Determines if the given character is a digit.
static bool IsHexDigit (simba_char in_char)
 Determines if the given character is a hex digit.
static bool IsNan (const simba_double32 &in_value)
 Determines if in_num is NaN representation for float type.
static bool IsNan (const simba_double64 &in_value)
 Determines if in_num is NaN representation for double type.

Detailed Description

Converts between strings and numbers.


Member Function Documentation

static simba_size_t ConvertDouble32ToCharArray ( simba_double32  in_num,
simba_char out_buffer 
) [static]

Converts in_num to a NUL-terminated array of characters and stores the result in out_buffer.

Parameters:
in_num The number to convert
out_buffer The buffer to write the result to. This buffer must be at least 25 characters or buffer overruns can occur. (NOT OWN)
Returns:
The number of characters in the output buffer.
static simba_string ConvertDouble32ToString ( simba_double32  in_num  )  [static]

Converts in_num into a simba_string.

Parameters:
in_num The number to convert.
Returns:
The resulting value.
static simba_wstring ConvertDouble32ToWString ( simba_double32  in_num  )  [static]

Converts in_num into a simba_wstring.

Parameters:
in_num The number to convert.
Returns:
The resulting value.
static simba_size_t ConvertDouble64ToCharArray ( simba_double64  in_num,
simba_char out_buffer 
) [static]

Converts in_num to a NUL-terminated array of characters and stores the result in out_buffer.

Parameters:
in_num The number to convert
out_buffer The buffer to write the result to. This buffer must be at least 25 characters or buffer overruns can occur. (NOT OWN)
Returns:
The number of characters in the output buffer.
static simba_string ConvertDouble64ToString ( simba_double64  in_num  )  [static]

Converts in_num into a simba_string.

Parameters:
in_num The number to convert.
Returns:
The resulting value.
static simba_wstring ConvertDouble64ToWString ( simba_double64  in_num  )  [static]

Converts in_num into a simba_wstring.

Parameters:
in_num The number to convert.
Returns:
The resulting value.
static bool ConvertFourDigitStringToInteger ( const simba_char in_source,
T &  out_result 
) [inline, static]

Converts a four digit string to an integer.

Parameters:
in_source String holding a number value. This must be at least four characters. The string is not necessarily NUL-terminated. The string can be prefixed with '-' to indicate it is negative, but still requires 4 digits after. (NOT OWN)
out_result The result. Undefined if this is not a valid number.
Returns:
True if the conversion succeeded. False otherwise.
static void ConvertFourDigitStringToIntegerUnchecked ( const simba_char in_source,
T &  out_result 
) [inline, static]

Converts a four digit string to an integer.

The data is not validated.

Parameters:
in_source String holding a number value. This must be at least four characters. The string is not necessarily NUL-terminated. The string can be prefixed with '-' to indicate it is negative, but still requires 4 digits after. (NOT OWN)
out_result The result. Undefined if this is not a valid number.
Returns:
True if the conversion succeeded. False otherwise.
static simba_char* ConvertInt16ToString ( simba_int16  in_num,
simba_uint16  in_length,
simba_char io_buffer 
) [static]

Converts in_num into as ASCII string.

This function will fill io_buffer from the end towards the beginning, with the returned pointer pointing to the start of the value within io_buffer. The returned value will be null-terminated.

Parameters:
in_num The number to convert.
in_length The length of the given string buffer.
io_buffer The buffer to put the string value into. (NOT OWN)
Returns:
A pointer to the starting character of the value in io_buffer. (NOT OWN)
static simba_string ConvertInt16ToString ( simba_int16  in_num  )  [static]

Converts in_num into a simba_string.

Parameters:
in_num The number to convert.
Returns:
The resulting value.
static simba_wstring ConvertInt16ToWString ( simba_int16  in_num  )  [static]

Converts in_num into a simba_wstring.

Parameters:
in_num The number to convert.
Returns:
The resulting value.
static simba_char* ConvertInt32ToString ( simba_int32  in_num,
simba_uint16  in_length,
simba_char io_buffer 
) [static]

Converts in_num into as ASCII string.

This function will fill io_buffer from the end towards the beginning, with the returned pointer pointing to the start of the value within io_buffer. The returned value will be null-terminated.

Parameters:
in_num The number to convert.
in_length The length of the given string buffer.
io_buffer The buffer to put the string value into. (NOT OWN)
Returns:
A pointer to the starting character of the value in io_buffer. (NOT OWN)
static simba_string ConvertInt32ToString ( simba_int32  in_num  )  [static]

Converts in_num into a simba_string.

Parameters:
in_num The number to convert.
Returns:
The resulting value.
static simba_wstring ConvertInt32ToWString ( simba_int32  in_num  )  [static]

Converts in_num into a simba_wstring.

Parameters:
in_num The number to convert.
Returns:
The resulting value.
static simba_char* ConvertInt64ToString ( simba_int64  in_num,
simba_uint16  in_length,
simba_char io_buffer 
) [static]

Converts in_num into as ASCII string.

This function will fill io_buffer from the end towards the beginning, with the returned pointer pointing to the start of the value within io_buffer. The returned value will be null-terminated.

Parameters:
in_num The number to convert.
in_length The length of the given string buffer.
io_buffer The buffer to put the string value into. (NOT OWN)
Returns:
A pointer to the starting character of the value in io_buffer. (NOT OWN)
static simba_string ConvertInt64ToString ( simba_int64  in_num  )  [static]

Converts in_num into a simba_string.

Parameters:
in_num The number to convert.
Returns:
The resulting value.
static simba_wstring ConvertInt64ToWString ( simba_int64  in_num  )  [static]

Converts in_num into a simba_wstring.

Parameters:
in_num The number to convert.
Returns:
The resulting value.
static simba_char* ConvertInt8ToString ( simba_int8  in_num,
simba_uint16  in_length,
simba_char io_buffer 
) [static]

Converts in_num into as ASCII string.

This function will fill io_buffer from the end towards the beginning, with the returned pointer pointing to the start of the value within io_buffer. The returned value will be null-terminated.

Parameters:
in_num The number to convert.
in_length The length of the given string buffer.
io_buffer The buffer to put the string value into. (NOT OWN)
Returns:
A pointer to the starting character of the value in io_buffer. (NOT OWN)
static simba_string ConvertInt8ToString ( simba_int8  in_num  )  [static]

Converts in_num into a simba_string.

Parameters:
in_num The number to convert.
Returns:
The resulting value.
static simba_wstring ConvertInt8ToWString ( simba_int8  in_num  )  [static]

Converts in_num into a simba_wstring.

Parameters:
in_num The number to convert.
Returns:
The resulting value.
static simba_string ConvertIntNativeToString ( simba_signed_native  in_num  )  [static]

Converts in_num into a simba_string.

Parameters:
in_num The number to convert.
Returns:
The resulting value.
static simba_wstring ConvertIntNativeToWString ( simba_signed_native  in_num  )  [static]

Converts in_num into a simba_wstring.

Parameters:
in_num The number to convert.
Returns:
The resulting value.
static T ConvertStringToFloatingPoint ( const simba_string in_source,
bool  in_throwOnTruncate = true 
) [inline, static]

Converts in_source into a specified target Type.

Note this function should only be used for the following types.

  • simba_double32
  • simba_double64
Parameters:
in_source String holding a number value.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the specified version of the source.
static T ConvertStringToFloatingPoint ( const simba_char in_source,
bool  in_throwOnTruncate = true 
) [inline, static]

Converts in_source into a specified target Type.

Note this function should only be used for the following types.

  • simba_double32
  • simba_double64
Parameters:
in_source NULL terminated string holding a number value. (NOT OWN)
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the specified version of the source.
static T ConvertStringToFloatingPoint ( const simba_char in_source,
simba_size_t  in_length,
bool  in_throwOnTruncate 
) [inline, static]

Converts in_source into a specified target Type.

Note this function should only be used for the following types.

  • simba_double32
  • simba_double64
Parameters:
in_source String holding a number value. (NOT OWN)
in_length The length of the string in characters.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the specified version of the source.
static simba_int16 ConvertStringToInt16 ( const simba_string in_source,
bool  in_throwOnTruncate = true 
) [static]

Converts in_source into a simba_int16.

Parameters:
in_source String holding a number value.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the simba_int16 version of the source.
static simba_int16 ConvertStringToInt16 ( const simba_char in_source,
simba_size_t  in_length,
bool  in_throwOnTruncate 
) [static]

Converts in_source into a simba_int16.

Parameters:
in_source String holding a number value. (NOT OWN)
in_length The length of the string in characters.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the simba_int16 version of the source.
static simba_int16 ConvertStringToInt16 ( const simba_char in_source,
bool  in_throwOnTruncate = true 
) [static]

Converts in_source into a simba_int16.

Parameters:
in_source NULL terminated string holding a number value. (NOT OWN)
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the simba_int16 version of the source.
static simba_int32 ConvertStringToInt32 ( const simba_string in_source,
bool  in_throwOnTruncate = true 
) [static]

Converts in_source into a simba_int32.

Parameters:
in_source String holding a number value.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the simba_int32 version of the source.
static simba_int32 ConvertStringToInt32 ( const simba_char in_source,
simba_size_t  in_length,
bool  in_throwOnTruncate 
) [static]

Converts in_source into a simba_int32.

Parameters:
in_source String holding a number value. (NOT OWN)
in_length The length of the string in characters.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the simba_int32 version of the source.
static simba_int32 ConvertStringToInt32 ( const simba_char in_source,
bool  in_throwOnTruncate = true 
) [static]

Converts in_source into a simba_int32.

Parameters:
in_source NULL terminated string holding a number value. (NOT OWN)
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the simba_int32 version of the source.
static simba_int64 ConvertStringToInt64 ( const simba_string in_source,
bool  in_throwOnTruncate = true 
) [static]

Converts in_source into a simba_int64.

Throws an NumberConversionInvalidDataException or NumberConversionOutOfRangeException on error.

Parameters:
in_source String holding a number value.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Returns:
The resulting int64 value.
static simba_int64 ConvertStringToInt64 ( const simba_char in_source,
simba_size_t  in_length,
bool  in_throwOnTruncate = true 
) [static]

Converts in_source into a simba_int64.

Parameters:
in_source String holding a number value. (NOT OWN)
in_length The length of the string in characters.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Returns:
the simba_int64 version of the source.
static simba_int64 ConvertStringToInt64 ( const simba_char in_source,
bool  in_throwOnTruncate = true 
) [static]

Converts in_source into a simba_int64.

Parameters:
in_source NULL terminated string holding a number value. (NOT OWN)
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Returns:
the simba_int64 version of the source.
static simba_int8 ConvertStringToInt8 ( const simba_string in_source,
bool  in_throwOnTruncate = true 
) [static]
Parameters:
in_source String holding a number value.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the simba_int8 version of the source.
static simba_int8 ConvertStringToInt8 ( const simba_char in_source,
simba_size_t  in_length,
bool  in_throwOnTruncate 
) [static]

Converts in_source into a simba_int8.

Parameters:
in_source String holding a number value. (NOT OWN)
in_length The length of the string in characters.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the simba_int8 version of the source.
static simba_int8 ConvertStringToInt8 ( const simba_char in_source,
bool  in_throwOnTruncate = true 
) [static]

Converts in_source into a simba_int8.

Parameters:
in_source NULL terminated string holding a number value. (NOT OWN)
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the simba_int8 version of the source.
static T ConvertStringToIntegerTypeUnsafe ( const simba_string in_source  )  [inline, static]

Converts in_source into the specified target type.

This function does _not_ check that each character is a digit.

Note that this function should only be used for the following types:

  • simba_int8
  • simba_uint8
  • simba_int16
  • simba_uint16
  • simba_int32
  • simba_uint32
  • simba_int64
  • simba_uint64
  • simba_signed_native
  • simba_unsigned_native
Parameters:
in_source String holding a number value.
Returns:
the specified version of the source.
static T ConvertStringToIntegerTypeUnsafe ( const simba_char in_source,
simba_size_t  in_length 
) [inline, static]

Converts in_source into the specified target type.

This function does _not_ check that each character is a digit.

Note that this function should only be used for the following types:

  • simba_int8
  • simba_uint8
  • simba_int16
  • simba_uint16
  • simba_int32
  • simba_uint32
  • simba_int64
  • simba_uint64
  • simba_signed_native
  • simba_unsigned_native
Parameters:
in_source String holding a number value. (NOT OWN)
in_length The length of the string in characters.
Returns:
the specified version of the source.
static T ConvertStringToIntegerTypeUnsafe ( const simba_char in_source  )  [inline, static]

Converts in_source into the specified target type.

This function does _not_ check that each character is a digit.

Note that this function should only be used for the following types:

  • simba_int8
  • simba_uint8
  • simba_int16
  • simba_uint16
  • simba_int32
  • simba_uint32
  • simba_int64
  • simba_uint64
  • simba_signed_native
  • simba_unsigned_native
Parameters:
in_source NULL terminated string holding a number value. (NOT OWN)
Returns:
the specified version of the source.
static simba_signed_native ConvertStringToIntNative ( const simba_string in_source,
bool  in_throwOnTruncate = true 
) [static]

Converts in_source into a simba_signed_native.

Parameters:
in_source String holding a number value.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the simba_signed_native version of the source.
static simba_signed_native ConvertStringToIntNative ( const simba_char in_source,
simba_size_t  in_length,
bool  in_throwOnTruncate 
) [static]

Converts in_source into a simba_signed_native.

Parameters:
in_source String holding a number value. (NOT OWN)
in_length The length of the string in characters.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the simba_signed_native version of the source.
static simba_signed_native ConvertStringToIntNative ( const simba_char in_source,
bool  in_throwOnTruncate = true 
) [static]

Converts in_source into a simba_signed_native.

Parameters:
in_source NULL terminated string holding a number value. (NOT OWN)
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the simba_signed_native version of the source.
static T ConvertStringToType ( const simba_string in_source,
bool  in_throwOnTruncate = true 
) [inline, static]

Converts in_source into the specified target type.

Note that this function should only be used for the following types:

  • simba_int8
  • simba_uint8
  • simba_int16
  • simba_uint16
  • simba_int32
  • simba_uint32
  • simba_int64
  • simba_uint64
  • simba_signed_native
  • simba_unsigned_native
  • simba_double32
  • simba_double64
Parameters:
in_source String holding a number value.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the specified version of the source.
static T ConvertStringToType ( const simba_char in_source,
simba_size_t  in_length,
bool  in_throwOnTruncate = true 
) [inline, static]

Converts in_source into the specified target type.

Note that this function should only be used for the following types:

  • simba_int8
  • simba_uint8
  • simba_int16
  • simba_uint16
  • simba_int32
  • simba_uint32
  • simba_int64
  • simba_uint64
  • simba_signed_native
  • simba_unsigned_native
  • simba_double32
  • simba_double64
Parameters:
in_source String holding a number value. (NOT OWN)
in_length The length of the string in characters.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the specified version of the source.
static T ConvertStringToType ( const simba_char in_source,
bool  in_throwOnTruncate = true 
) [inline, static]

Converts in_source into the specified target type.

Note that this function should only be used for the following types:

  • simba_int8
  • simba_uint8
  • simba_int16
  • simba_uint16
  • simba_int32
  • simba_uint32
  • simba_int64
  • simba_uint64
  • simba_signed_native
  • simba_unsigned_native
Parameters:
in_source NULL terminated string holding a number value. (NOT OWN)
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the specified version of the source.
static simba_uint16 ConvertStringToUInt16 ( const simba_string in_source,
bool  in_throwOnTruncate = true 
) [static]

Converts in_source into a simba_uint16.

Parameters:
in_source String holding a number value.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the simba_uint16 version of the source.
static simba_uint16 ConvertStringToUInt16 ( const simba_char in_source,
simba_size_t  in_length,
bool  in_throwOnTruncate 
) [static]

Converts in_source into a simba_uint16.

Parameters:
in_source String holding a number value. (NOT OWN)
in_length The length of the string in characters.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the simba_uint16 version of the source.
static simba_uint16 ConvertStringToUInt16 ( const simba_char in_source,
bool  in_throwOnTruncate = true 
) [static]

Converts in_source into a simba_uint16.

Parameters:
in_source NULL terminated string holding a number value. (NOT OWN)
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the simba_uint16 version of the source.
static simba_uint32 ConvertStringToUInt32 ( const simba_string in_source,
bool  in_throwOnTruncate = true 
) [static]

Converts in_source into a simba_uint32.

Parameters:
in_source String holding a number value.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the simba_uint32 version of the source.
static simba_uint32 ConvertStringToUInt32 ( const simba_char in_source,
simba_size_t  in_length,
bool  in_throwOnTruncate 
) [static]

Converts in_source into a simba_uint32.

Parameters:
in_source String holding a number value. (NOT OWN)
in_length The length of the string in characters.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the simba_uint32 version of the source.
static simba_uint32 ConvertStringToUInt32 ( const simba_char in_source,
bool  in_throwOnTruncate = true 
) [static]

Converts in_source into a simba_uint32.

Parameters:
in_source NULL terminated string holding a number value. (NOT OWN)
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the simba_uint32 version of the source.
static simba_uint64 ConvertStringToUInt64 ( const simba_string in_source,
bool  in_throwOnTruncate = true 
) [static]

Converts in_source into a simba_uint64.

Throws an NumberConversionInvalidDataException or NumberConversionOutOfRangeException on error.

Parameters:
in_source String holding a number value.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Returns:
The resulting uint64 value.
static simba_uint64 ConvertStringToUInt64 ( const simba_char in_source,
simba_size_t  in_length,
bool  in_throwOnTruncate = true 
) [static]

Converts in_source into a simba_uint64.

Parameters:
in_source String holding a number value. (NOT OWN)
in_length The length of the string in characters.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Returns:
the simba_int64 version of the source.
static simba_uint64 ConvertStringToUInt64 ( const simba_char in_source,
bool  in_throwOnTruncate = true 
) [static]

Converts in_source into a simba_uint64.

Parameters:
in_source NULL terminated string holding a number value. (NOT OWN)
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Returns:
the simba_uint64 version of the source.
static simba_uint8 ConvertStringToUInt8 ( const simba_string in_source,
bool  in_throwOnTruncate = true 
) [static]

Converts in_source into a simba_uint8.

Parameters:
in_source String holding a number value.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the simba_uint8 version of the source.
static simba_uint8 ConvertStringToUInt8 ( const simba_char in_source,
simba_size_t  in_length,
bool  in_throwOnTruncate 
) [static]

Converts in_source into a simba_uint8.

Parameters:
in_source String holding a number value. (NOT OWN)
in_length The length of the string in characters.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the simba_uint8 version of the source.
static simba_uint8 ConvertStringToUInt8 ( const simba_char in_source,
bool  in_throwOnTruncate = true 
) [static]

Converts in_source into a simba_uint8.

Parameters:
in_source NULL terminated string holding a number value. (NOT OWN)
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the simba_uint8 version of the source.
static simba_unsigned_native ConvertStringToUIntNative ( const simba_string in_source,
bool  in_throwOnTruncate = true 
) [static]

Converts in_source into a simba_unsigned_native.

Parameters:
in_source String holding a number value.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the simba_unsigned_native version of the source.
static simba_unsigned_native ConvertStringToUIntNative ( const simba_char in_source,
simba_size_t  in_length,
bool  in_throwOnTruncate 
) [static]

Converts in_source into a simba_unsigned_native.

Parameters:
in_source String holding a number value. (NOT OWN)
in_length The length of the string in characters.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the simba_unsigned_native version of the source.
static simba_unsigned_native ConvertStringToUIntNative ( const simba_char in_source,
bool  in_throwOnTruncate = true 
) [static]

Converts in_source into a simba_unsigned_native.

Parameters:
in_source NULL terminated string holding a number value. (NOT OWN)
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the simba_unsigned_native version of the source.
static simba_char* ConvertToString ( TypeT  in_num,
simba_uint16  in_length,
simba_char io_buffer 
) [inline, static]

Converts in_num into as ASCII string.

This function will fill io_buffer from the end towards the beginning, with the returned pointer pointing to the start of the value within io_buffer. The returned value will be null-terminated.

Note that simba_double32 and simba_double64 will fill from the front of the buffer, not the back.

Parameters:
in_num The number to convert.
in_length The length of the given string buffer.
io_buffer The buffer to put the string value into. (NOT OWN)
Returns:
A pointer to the starting character of the value in io_buffer. (NOT OWN)

TypeT should be one of the following:

  • simba_int8
  • simba_uint8
  • simba_int16
  • simba_uint16
  • simba_int32
  • simba_uint32
  • simba_int64
  • simba_uint64
  • simba_signed_native
  • simba_unsigned_native
  • simba_double32
  • simba_double64
static simba_string ConvertToString ( TypeT  in_num  )  [inline, static]

Converts in_num into a simba_string.

Parameters:
in_num The number to convert.
Returns:
The resulting value.

TypeT should be one of the following:

  • simba_int8
  • simba_uint8
  • simba_int16
  • simba_uint16
  • simba_int32
  • simba_uint32
  • simba_int64
  • simba_uint64
  • simba_signed_native
  • simba_unsigned_native
  • simba_double32
  • simba_double64
static simba_wstring ConvertToWString ( TypeT  in_num  )  [inline, static]

Converts in_num into a simba_wstring.

Parameters:
in_num The number to convert.
Returns:
The resulting value.

TypeT should be one of the following:

  • simba_int8
  • simba_uint8
  • simba_int16
  • simba_uint16
  • simba_int32
  • simba_uint32
  • simba_int64
  • simba_uint64
  • simba_signed_native
  • simba_unsigned_native
  • simba_double32
  • simba_double64
static bool ConvertTwoDigitStringToInteger ( const simba_char in_source,
T &  out_result 
) [inline, static]

Converts a two digit string to an integer.

Parameters:
in_source String holding a number value. This must be at least two characters. The string can have a '-' prefix if you are converting to a signed integer, but there must be two digits after. (NOT OWN)
out_result The result. Undefined if this is not a valid number.
Returns:
True if the conversion succeeded. False otherwise.
static void ConvertTwoDigitStringToIntegerUnchecked ( const simba_char in_source,
T &  out_result 
) [inline, static]

Converts a two digit string to an integer.

The data is not validated.

Parameters:
in_source String holding a number value. This must be at least two characters. The string can have a '-' prefix if you are converting to a signed integer, but there must be two digits after. (NOT OWN)
out_result The result. Undefined if this is not a valid number.
Returns:
True if the conversion succeeded. False otherwise.
static simba_char* ConvertUInt16ToString ( simba_uint16  in_num,
simba_uint16  in_length,
simba_char io_buffer 
) [static]

Converts in_num into as ASCII string.

This function will fill io_buffer from the end towards the beginning, with the returned pointer pointing to the start of the value within io_buffer. The returned value will be null-terminated.

Parameters:
in_num The number to convert.
in_length The length of the given string buffer.
io_buffer The buffer to put the string value into. (NOT OWN)
Returns:
A pointer to the starting character of the value in io_buffer. (NOT OWN)
static simba_string ConvertUInt16ToString ( simba_uint16  in_num  )  [static]

Converts in_num into a simba_string.

Parameters:
in_num The number to convert.
Returns:
The resulting value.
static simba_wstring ConvertUInt16ToWString ( simba_uint16  in_num  )  [static]

Converts in_num into a simba_wstring.

Parameters:
in_num The number to convert.
Returns:
The resulting value.
static simba_char* ConvertUInt32ToString ( simba_uint32  in_num,
simba_uint16  in_length,
simba_char io_buffer 
) [static]

Converts in_num into as ASCII string.

This function will fill io_buffer from the end towards the beginning, with the returned pointer pointing to the start of the value within io_buffer. The returned value will be null-terminated.

Parameters:
in_num The number to convert.
in_length The length of the given string buffer.
io_buffer The buffer to put the string value into. (NOT OWN)
Returns:
A pointer to the starting character of the value in io_buffer. (NOT OWN)
static simba_string ConvertUInt32ToString ( simba_uint32  in_num  )  [static]

Converts in_num into a simba_string.

Parameters:
in_num The number to convert.
Returns:
The resulting value.
static simba_wstring ConvertUInt32ToWString ( simba_uint32  in_num  )  [static]

Converts in_num into a simba_wstring.

Parameters:
in_num The number to convert.
Returns:
The resulting value.
static simba_char* ConvertUInt64ToString ( simba_uint64  in_num,
simba_uint16  in_length,
simba_char io_buffer 
) [static]

Converts in_num into as ASCII string.

This function will fill io_buffer from the end towards the beginning, with the returned pointer pointing to the start of the value within io_buffer. The returned value will be null-terminated.

Parameters:
in_num The number to convert.
in_length The length of the given string buffer.
io_buffer The buffer to put the string value into. (NOT OWN)
Returns:
A pointer to the starting character of the value in io_buffer. (NOT OWN)
static simba_string ConvertUInt64ToString ( simba_uint64  in_num  )  [static]

Converts in_num into a simba_string.

Parameters:
in_num The number to convert.
Returns:
The resulting value.
static simba_wstring ConvertUInt64ToWString ( simba_uint64  in_num  )  [static]

Converts in_num into a simba_wstring.

Parameters:
in_num The number to convert.
Returns:
The resulting value.
static simba_char* ConvertUInt8ToString ( simba_uint8  in_num,
simba_uint16  in_length,
simba_char io_buffer 
) [static]

Converts in_num into as ASCII string.

This function will fill io_buffer from the end towards the beginning, with the returned pointer pointing to the start of the value within io_buffer. The returned value will be null-terminated.

Parameters:
in_num The number to convert.
in_length The length of the given string buffer.
io_buffer The buffer to put the string value into. (NOT OWN)
Returns:
A pointer to the starting character of the value in io_buffer. (NOT OWN)
static simba_string ConvertUInt8ToString ( simba_uint8  in_num  )  [static]

Converts in_num into a simba_string.

Parameters:
in_num The number to convert.
Returns:
The resulting value.
static simba_wstring ConvertUInt8ToWString ( simba_uint8  in_num  )  [static]

Converts in_num into a simba_wstring.

Parameters:
in_num The number to convert.
Returns:
The resulting value.
static simba_string ConvertUIntNativeToString ( simba_unsigned_native  in_num  )  [static]

Converts in_num into a simba_string.

Parameters:
in_num The number to convert.
Returns:
The resulting value.
static simba_wstring ConvertUIntNativeToWString ( simba_unsigned_native  in_num  )  [static]

Converts in_num into a simba_wstring.

Parameters:
in_num The number to convert.
Returns:
The resulting value.
static simba_double64 ConvertWStringToDouble ( const simba_wstring in_source,
bool  in_throwOnTruncate = true 
) [static]

Converts in_source into a simba_double64.

Parameters:
in_source String holding a number value.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the simba_double64 version of the source.
static simba_int16 ConvertWStringToInt16 ( const simba_wstring in_source,
bool  in_throwOnTruncate = true 
) [static]

Converts in_source into a simba_int16.

Parameters:
in_source String holding a number value.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the simba_int16 version of the source.
static simba_int32 ConvertWStringToInt32 ( const simba_wstring in_source,
bool  in_throwOnTruncate = true 
) [static]

Converts in_source into a simba_int32.

Parameters:
in_source String holding a number value.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the simba_int32 version of the source.
static simba_int64 ConvertWStringToInt64 ( const simba_wstring in_source,
bool  in_throwOnTruncate = true 
) [static]

Converts in_source into a simba_int64.

Throws an NumberConversionInvalidDataException or NumberConversionOutOfRangeException on error.

Parameters:
in_source String holding a number value.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Returns:
The resulting int64 value.
static simba_int8 ConvertWStringToInt8 ( const simba_wstring in_source,
bool  in_throwOnTruncate = true 
) [static]

Converts in_source into a simba_int8.

Parameters:
in_source String holding a number value.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the simba_int8 version of the source.
static T ConvertWStringToIntegerTypeUnsafe ( const simba_wstring in_source  )  [inline, static]

Converts in_source into the specified target type.

Note that this function should only be used for the following types:

  • simba_int8
  • simba_uint8
  • simba_int16
  • simba_uint16
  • simba_int32
  • simba_uint32
  • simba_int64
  • simba_uint64
  • simba_signed_native
  • simba_unsigned_native
Parameters:
in_source String holding a number value.
Returns:
the specified version of the source.
static simba_signed_native ConvertWStringToIntNative ( const simba_wstring in_source,
bool  in_throwOnTruncate = true 
) [static]

Converts in_source into a simba_signed_native.

Throws an ErrorException on error.

Parameters:
in_source String holding a number value.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Returns:
The resulting value.
static simba_double32 ConvertWStringToSingle ( const simba_wstring in_source,
bool  in_throwOnTruncate = true 
) [static]

Converts in_source into a simba_double32.

Parameters:
in_source String holding a number value.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the simba_double32 version of the source.
static T ConvertWStringToType ( const simba_wstring in_source,
bool  in_throwOnTruncate = true 
) [inline, static]

Converts in_source into the specified target type.

Note that this function should only be used for the following types:

  • simba_int8
  • simba_uint8
  • simba_int16
  • simba_uint16
  • simba_int32
  • simba_uint32
  • simba_int64
  • simba_uint64
  • simba_signed_native
  • simba_unsigned_native
  • simba_double32
  • simba_double64
Parameters:
in_source String holding a number value.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the specified version of the source.
static simba_uint16 ConvertWStringToUInt16 ( const simba_wstring in_source,
bool  in_throwOnTruncate = true 
) [static]

Converts in_source into a simba_uint16.

Parameters:
in_source String holding a number value.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the simba_uint16 version of the source.
static simba_uint32 ConvertWStringToUInt32 ( const simba_wstring in_source,
bool  in_throwOnTruncate = true 
) [static]

Converts in_source into a simba_uint32.

Parameters:
in_source String holding a number value.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the simba_uint32 version of the source.
static simba_uint64 ConvertWStringToUInt64 ( const simba_wstring in_source,
bool  in_throwOnTruncate = true 
) [static]

Converts in_source into a simba_uint64.

Throws an NumberConversionInvalidDataException or NumberConversionOutOfRangeException on error.

Parameters:
in_source String holding a number value.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Returns:
The resulting uint64 value.
static simba_uint8 ConvertWStringToUInt8 ( const simba_wstring in_source,
bool  in_throwOnTruncate = true 
) [static]

Converts in_source into a simba_uint8.

Parameters:
in_source String holding a number value.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Exceptions:
ErrorException when an error occurs converting the string.
Returns:
the simba_uint8 version of the source.
static simba_unsigned_native ConvertWStringToUIntNative ( const simba_wstring in_source,
bool  in_throwOnTruncate = true 
) [static]

Converts in_source into a simba_unsigned_native.

Throws an ErrorException on error.

Parameters:
in_source String holding a number value.
in_throwOnTruncate Flag indicating if an exception should be thrown if excess characters are truncated.
Returns:
The resulting value.
static simba_uint8 GetNumberOfDigits ( in_value  )  [inline, static]

Get the number of whole digits from in_value.

Note that this function should only be used for the following integer types:

  • simba_int8
  • simba_uint8
  • simba_int16
  • simba_uint16
  • simba_int32
  • simba_uint32
  • simba_int64
  • simba_uint64
  • simba_signed_native
  • simba_unsigned_native
Parameters:
in_value The value to count the number of digits in.
Returns:
The number of digits in in_value.
static bool IsDigit ( simba_char  in_char  )  [inline, static]

Determines if the given character is a digit.

Note that this function exists as the isdigit function can assert on Windows in certain cases.

Parameters:
in_char The character to check.
Returns:
True if the character is a digit, false otherwise.
static bool IsHexDigit ( simba_char  in_char  )  [inline, static]

Determines if the given character is a hex digit.

Note that this function exists as the isxdigit function can assert on Windows in certain cases.

Parameters:
in_char The character to check.
Returns:
True if the character is a hex digit, false otherwise.
static bool IsNan ( const simba_double32 in_value  )  [static]

Determines if in_num is NaN representation for float type.

Parameters:
in_value The number to check.
Returns:
True if NaN, false otherwise.
static bool IsNan ( const simba_double64 in_value  )  [static]

Determines if in_num is NaN representation for double type.

Parameters:
in_value The number to check.
Returns:
True if NaN, false otherwise.

The documentation for this class was generated from the following file:

Generated on Wed May 17 14:21:19 2017 for SimbaEngine 10.1.3.1011 by simba