PixelLightAPI
.
|
Static class with some useful string parse tool functions. More...
#include <ParseTools.h>
Static Public Member Functions | |
static PLCORE_API uint32 | ParseHexValue (const String &sString) |
Parse string containing a hex value to an integer (for example "FF" => "255") | |
static PLCORE_API int | ParseIntegerArray (const String &sString, int *pnValues, uint32 nMaxNumOfElements) |
Parse an array of integer values. | |
static PLCORE_API int | ParseFloatArray (const String &sString, float *pfValues, uint32 nMaxNumOfElements) |
Parse an array of float values. | |
static PLCORE_API int | ParseDoubleArray (const String &sString, double *pdValues, uint32 nMaxNumOfElements) |
Parse an array of double values. | |
static PLCORE_API uint32 | GetFlagsFromString (const String &sFlags) |
Returns the flags from a string. | |
static PLCORE_API String | GetStringFromFlags (uint32 nFlags) |
Creates a string from flags. |
Static class with some useful string parse tool functions.
static PLCORE_API uint32 PLCore::ParseTools::ParseHexValue | ( | const String & | sString | ) | [static] |
Parse string containing a hex value to an integer (for example "FF" => "255")
[in] | sString | String containing a hex value |
static PLCORE_API int PLCore::ParseTools::ParseIntegerArray | ( | const String & | sString, |
int * | pnValues, | ||
uint32 | nMaxNumOfElements | ||
) | [static] |
Parse an array of integer values.
[in] | sString | String containing integer numbers |
[out] | pnValues | Pointer to C-array which will receive the integer values, if a null pointer nothing happens |
[in] | nMaxNumOfElements | The maximum number of elements 'nValues' can hold |
static PLCORE_API int PLCore::ParseTools::ParseFloatArray | ( | const String & | sString, |
float * | pfValues, | ||
uint32 | nMaxNumOfElements | ||
) | [static] |
Parse an array of float values.
[in] | sString | String containing floating point numbers |
[out] | pfValues | Pointer to C-array which will receive the float values, if a null pointer nothing happens |
[in] | nMaxNumOfElements | The maximum number of elements 'fValues' can hold |
static PLCORE_API int PLCore::ParseTools::ParseDoubleArray | ( | const String & | sString, |
double * | pdValues, | ||
uint32 | nMaxNumOfElements | ||
) | [static] |
Parse an array of double values.
[in] | sString | String containing double precision floating point numbers |
[out] | pdValues | Pointer to C-array which will receive the double values, if a null pointer nothing happens |
[in] | nMaxNumOfElements | The maximum number of elements 'dValues' can hold |
static PLCORE_API uint32 PLCore::ParseTools::GetFlagsFromString | ( | const String & | sFlags | ) | [static] |
Returns the flags from a string.
[in] | sFlags | String containing flags |
static PLCORE_API String PLCore::ParseTools::GetStringFromFlags | ( | uint32 | nFlags | ) | [static] |
Creates a string from flags.
[in] | nFlags | Flags value |
|