#include <FUStringConversion.h>
Static Public Member Functions | |
static fstring | ToFString (const char *value) |
Converts a 8-bit string to a Unicode string. | |
static fstring | ToFString (const string &value) |
See above. | |
static string | ToString (const fchar *value) |
Converts an Unicode string to a 8-bit string. | |
static string | ToString (const fstring &value) |
See above. | |
static bool | ToBoolean (const char *value) |
Parses a string into a boolean value. | |
static bool | ToBoolean (const string &value) |
See above. | |
static bool | ToBoolean (const fchar *value) |
See above. | |
static bool | ToBoolean (const fstring &value) |
See above. | |
static float | ToFloat (const char **value) |
Parses a string into a floating-point value. | |
static float | ToFloat (const char *value) |
See above. | |
static float | ToFloat (const string &value) |
See above. | |
static float | ToFloat (const fchar **value) |
See above. | |
static float | ToFloat (const fstring &value) |
See above. | |
static float | ToFloat (const fchar *value) |
See above. | |
static int32 | ToInt32 (const char **value) |
Parses a string into a signed integer. | |
static int32 | ToInt32 (const char *value) |
See above. | |
static int32 | ToInt32 (const string &value) |
See above. | |
static int32 | ToInt32 (const fchar **value) |
See above. | |
static int32 | ToInt32 (const fchar *value) |
See above. | |
static int32 | ToInt32 (const fstring &value) |
See above. | |
static uint32 | ToUInt32 (const char **value) |
Parses a string into an unsigned integer. | |
static uint32 | ToUInt32 (const char *value) |
See above. | |
static uint32 | ToUInt32 (const string &value) |
See above. | |
static uint32 | ToUInt32 (const fchar **value) |
See above. | |
static uint32 | ToUInt32 (const fchar *value) |
See above. | |
static uint32 | ToUInt32 (const fstring &value) |
See above. | |
static uint32 | HexToUInt32 (const char **value, uint32 count=UINT_MAX) |
Parses a string into an unsigned integer. | |
static uint32 | HexToUInt32 (const char *value, uint32 count=UINT_MAX) |
See above. | |
static uint32 | HexToUInt32 (const string &value, uint32 count=UINT_MAX) |
See above. | |
static uint32 | HexToUInt32 (const fchar **value, uint32 count=UINT_MAX) |
See above. | |
static uint32 | HexToUInt32 (const fchar *value, uint32 count=UINT_MAX) |
See above. | |
static uint32 | HexToUInt32 (const fstring &value, uint32 count=UINT_MAX) |
See above. | |
static FMVector3 | ToPoint (const char **value, float lengthFactor=1.0f) |
Parses a string into a 3D vector. | |
static FMVector3 | ToPoint (const char *value, float lengthFactor=1.0f) |
See above. | |
static FMVector3 | ToPoint (const string &value, float lengthFactor=1.0f) |
See above. | |
static FMVector3 | ToPoint (const fchar **value, float lengthFactor=1.0f) |
See above. | |
static FMVector3 | ToPoint (const fchar *value, float lengthFactor=1.0f) |
See above. | |
static FMVector3 | ToPoint (const fstring &value, float lengthFactor=1.0f) |
See above. | |
static void | ToMatrix (const char **value, FMMatrix44 &mx, float lengthFactor=1.0f) |
Parses a string into a 4x4 matrix. | |
static void | ToMatrix (const char *value, FMMatrix44 &mx, float lengthFactor=1.0f) |
See above. | |
static void | ToMatrix (const string &value, FMMatrix44 &mx, float lengthFactor=1.0f) |
See above. | |
static void | ToMatrix (const fchar **value, FMMatrix44 &mx, float lengthFactor=1.0f) |
See above. | |
static void | ToMatrix (const fchar *value, FMMatrix44 &mx, float lengthFactor=1.0f) |
See above. | |
static void | ToMatrix (const fstring &value, FMMatrix44 &mx, float lengthFactor=1.0f) |
See above. | |
static void | ToDateTime (const char *value, FUDateTime &dateTime) |
Parses a string into a datetime structure. | |
static void | ToDateTime (const string &value, FUDateTime &dateTime) |
See above. | |
static void | ToDateTime (const fchar *value, FUDateTime &dateTime) |
See above. | |
static void | ToDateTime (const fstring &value, FUDateTime &dateTime) |
See above. | |
static void | ToFStringList (const fstring &value, FStringList &array) |
Splits a string into multiple substrings. | |
static void | ToStringList (const string &value, StringList &array) |
See above. | |
static void | ToStringList (const fchar *value, StringList &array) |
See above. | |
static void | ToStringList (const fstring &value, StringList &array) |
See above. | |
static void | ToFloatList (const char *value, FloatList &array) |
Parses a string into a list of floating point values. | |
static void | ToFloatList (const string &value, FloatList &array) |
See above. | |
static void | ToFloatList (const fchar *value, FloatList &array) |
See above. | |
static void | ToFloatList (const fstring &value, FloatList &array) |
See above. | |
static void | ToInt32List (const char *value, Int32List &array) |
Parses a string into a list of signed integers. | |
static void | ToInt32List (const string &value, Int32List &array) |
See above. | |
static void | ToInt32List (const fchar *value, Int32List &array) |
See above. | |
static void | ToInt32List (const fstring &value, Int32List &array) |
See above. | |
static void | ToUInt32List (const char *value, UInt32List &array) |
Parses a string into a list of unsigned integers. | |
static void | ToUInt32List (const string &value, UInt32List &array) |
See above. | |
static void | ToUInt32List (const fchar *value, UInt32List &array) |
See above. | |
static void | ToUInt32List (const fstring &value, UInt32List &array) |
See above. | |
static void | ToInterleavedFloatList (const char *value, const vector< FloatList * > &arrays) |
Parses a string containing interleaved floating-point values. | |
static void | ToInterleavedFloatList (const string &value, const vector< FloatList * > &arrays) |
See above. | |
static void | ToInterleavedFloatList (const fchar *value, const vector< FloatList * > &arrays) |
See above. | |
static void | ToInterleavedFloatList (const fstring &value, const vector< FloatList * > &arrays) |
See above. | |
static void | ToMatrixList (const char *value, FMMatrix44List &array, float lengthFactor=1.0f) |
Parses a string into a list of matrices. | |
static void | ToMatrixList (const string &value, FMMatrix44List &array, float lengthFactor=1.0f) |
See above. | |
static void | ToMatrixList (const fchar *value, FMMatrix44List &array, float lengthFactor=1.0f) |
See above. | |
static void | ToMatrixList (const fstring &value, FMMatrix44List &array, float lengthFactor=1.0f) |
See above. | |
static void | ToPointList (const char *value, FMVector3List &array, float lengthFactor=1.0f) |
Parses a string into a list of 3D points. | |
static void | ToPointList (const string &value, FMVector3List &array, float lengthFactor=1.0f) |
See above. | |
static void | ToPointList (const fchar *value, FMVector3List &array, float lengthFactor=1.0f) |
See above. | |
static void | ToPointList (const fstring &value, FMVector3List &array, float lengthFactor=1.0f) |
See above. | |
static void | ToString (FUSStringBuilder &builder, const FloatList &values, float lengthFactor=1.0f) |
Converts a list of floating-point values into a string. | |
static void | ToString (FUSStringBuilder &builder, const Int32List &values) |
Converts a list of signed integers into a string. | |
static void | ToString (FUSStringBuilder &builder, const UInt32List &values) |
Converts a list of unsigned integers into a string. | |
static string | ToString (const FMVector4 &p, float lengthFactor=1.0f) |
Converts a 4D vector into a string. | |
static string | ToString (const FMMatrix44 &value, float lengthFactor=1.0f) |
Converts a matrix into a string. | |
static fstring | ToFString (const FMMatrix44 &value, float lengthFactor=1.0f) |
See above. | |
static string | ToString (const FMVector3 &value, float lengthFactor=1.0f) |
Converts a 3D vector into a string. | |
static fstring | ToFString (const FMVector3 &value, float lengthFactor=1.0f) |
See above. | |
static string | ToString (const FUDateTime &dateTime) |
Converts a datetime structure into a string. | |
static fstring | ToFString (const FUDateTime &dateTime) |
See above. | |
template<typename T> | |
static string | ToString (const T &value) |
Converts a primitive value into a string. | |
template<typename T> | |
static fstring | ToFString (const T &value) |
See above. | |
static void | ToString (FUSStringBuilder &builder, const FMMatrix44 &value, float lengthFactor=1.0f) |
Converts a matrix into a string. | |
static void | ToFString (FUStringBuilder &builder, const FMMatrix44 &value, float lengthFactor=1.0f) |
See above. | |
static void | ToString (FUSStringBuilder &builder, const FMVector3 &value, float lengthFactor=1.0f) |
Converts a 3D vector into a string. | |
static void | ToFString (FUStringBuilder &builder, const FMVector3 &value, float lengthFactor=1.0f) |
See above. | |
static void | ToString (FUSStringBuilder &builder, const FMVector4 &p, float lengthFactor=1.0f) |
Converts a 4D vector into a string. |
This static class contains the parsing function for Unicode and 8-bit/UTF-8 strings into common data types: integers, booleans, floating-point values, vectors, matrices, date-time, etc. and dynamically-sized array of these types.
This class can also convert common data types into an 8-bit or a Unicode string and it contains conversion functions to convert string between 8-bit and Unicode.
|
Parses a string into an unsigned integer. The string is assumed to have an unsigned integer in hexadecimal format.
|
|
Parses a string into a boolean value.
|
|
Parses a string into a datetime structure.
|
|
Parses a string into a floating-point value.
|
|
Parses a string into a list of floating point values.
|
|
Converts a 8-bit string to a Unicode string.
|
|
Splits a string into multiple substrings. The separator used here are the white-spaces.
|
|
Parses a string into a signed integer.
|
|
Parses a string into a list of signed integers.
|
|
Parses a string containing interleaved floating-point values. The values will be stored in multiple, independent lists.
|
|
Parses a string into a 4x4 matrix.
|
|
Parses a string into a list of matrices.
|
|
Parses a string into a 3D vector.
|
|
Parses a string into a list of 3D points.
|
|
Converts a 4D vector into a string.
|
|
Converts a 3D vector into a string.
|
|
Converts a matrix into a string.
|
|
Converts a primitive value into a string. This function is templatized to use the global string builders to convert most primitive value types, such as signed integers, unsigned integers and single floating-point values, into strings.
|
|
Converts a datetime structure into a string.
|
|
Converts a 3D vector into a string.
|
|
Converts a matrix into a string.
|
|
Converts a 4D vector into a string.
|
|
Converts a list of unsigned integers into a string.
|
|
Converts a list of signed integers into a string.
|
|
Converts a list of floating-point values into a string.
|
|
Converts an Unicode string to a 8-bit string.
|
|
Parses a string into an unsigned integer.
|
|
Parses a string into a list of unsigned integers.
|