![]() |
FastEngine 0.9.3
A multiplayer oriented 2D engine made with Vulkan.
|
Everything related to strings. More...
Functions | |
FGE_API bool | fge::string::IsValidUtf8String (std::string const &str) |
Check if the provided string has valid utf8 encoded chars. | |
FGE_API uint8_t | fge::string::ToUint8 (std::string const &str) |
Convert efficiently a string to an uint8_t. | |
FGE_API uint16_t | fge::string::ToUint16 (std::string const &str) |
Convert efficiently a string to an uint16_t. | |
FGE_API uint32_t | fge::string::ToUint32 (std::string const &str) |
Convert efficiently a string to an uint32_t. | |
FGE_API uint64_t | fge::string::ToUint64 (std::string const &str) |
Convert efficiently a string to an uint64_t. | |
FGE_API int8_t | fge::string::ToInt8 (std::string const &str) |
Convert efficiently a string to an int8_t. | |
FGE_API int16_t | fge::string::ToInt16 (std::string const &str) |
Convert efficiently a string to an int16_t. | |
FGE_API int32_t | fge::string::ToInt32 (std::string const &str) |
Convert efficiently a string to an int32_t. | |
FGE_API int64_t | fge::string::ToInt64 (std::string const &str) |
Convert efficiently a string to an int64_t. | |
FGE_API unsigned int | fge::string::ToUint (std::string const &str) |
Convert efficiently a string to an unsigned int. | |
FGE_API int | fge::string::ToInt (std::string const &str) |
Convert efficiently a string to an int. | |
FGE_API unsigned long long int | fge::string::ToUlong (std::string const &str) |
Convert efficiently a string to an unsigned long long int. | |
FGE_API long long int | fge::string::ToLong (std::string const &str) |
Convert efficiently a string to an long long int. | |
FGE_API float | fge::string::ToFloat (std::string const &str) |
Convert efficiently a string to a float. | |
FGE_API double | fge::string::ToDouble (std::string const &str) |
Convert efficiently a string to a double. | |
FGE_API bool | fge::string::ToBool (std::string const &str) |
Convert efficiently a string to a bool. | |
FGE_API void * | fge::string::ToPtr (std::string const &str) |
Convert a string to a pointer (address) | |
FGE_API fge::Vector2f | fge::string::ToVec2f (std::string const &str) |
Convert a string to a vector2<float> | |
FGE_API fge::Vector2u | fge::string::ToVec2u (std::string const &str) |
Convert a string to a vector2<unsigned int> | |
FGE_API fge::Vector2i | fge::string::ToVec2i (std::string const &str) |
Convert a string to a vector2<int> | |
FGE_API std::string | fge::string::ToStr (bool val) |
Convert efficiently a boolean to a string. | |
FGE_API std::string | fge::string::ToStr (char val) |
Convert efficiently a char to a string. | |
FGE_API std::string | fge::string::ToStr (char16_t val) |
Convert efficiently a char16_t to a string. | |
FGE_API std::string | fge::string::ToStr (char32_t val) |
Convert efficiently a char32_t to a string. | |
FGE_API std::string | fge::string::ToStr (wchar_t val) |
Convert efficiently a wchar_t to a string. | |
FGE_API std::string | fge::string::ToStr (signed char val) |
Convert efficiently a signed char to a string. | |
FGE_API std::string | fge::string::ToStr (short int val) |
Convert efficiently a short int to a string. | |
FGE_API std::string | fge::string::ToStr (int val) |
Convert efficiently a int to a string. | |
FGE_API std::string | fge::string::ToStr (long int val) |
Convert efficiently a long int to a string. | |
FGE_API std::string | fge::string::ToStr (long long int val) |
Convert efficiently a long long int to a string. | |
FGE_API std::string | fge::string::ToStr (unsigned char val) |
Convert efficiently a unsigned char to a string. | |
FGE_API std::string | fge::string::ToStr (unsigned short int val) |
Convert efficiently a unsigned short int to a string. | |
FGE_API std::string | fge::string::ToStr (unsigned int val) |
Convert efficiently a unsigned int to a string. | |
FGE_API std::string | fge::string::ToStr (unsigned long int val) |
Convert efficiently a unsigned long int to a string. | |
FGE_API std::string | fge::string::ToStr (unsigned long long int val) |
Convert efficiently a unsigned long long int to a string. | |
FGE_API std::string | fge::string::ToStr (float val) |
Convert efficiently a float to a string. | |
FGE_API std::string | fge::string::ToStr (double val) |
Convert efficiently a double to a string. | |
FGE_API std::string | fge::string::ToStr (long double val) |
Convert efficiently a long double to a string. | |
FGE_API std::string | fge::string::ToStr (void *val) |
Convert a pointer (address) to a string. | |
FGE_API std::string | fge::string::ToStr (void const *val) |
Convert a pointer (address) to a string. | |
template<class T > | |
std::string | fge::string::ToStr (std::optional< T > const &val) |
Convert a optional value to a string. | |
FGE_API std::string | fge::string::ToStr (fge::Vector2f const &val) |
Convert a vector2<float> to a string. | |
FGE_API std::string | fge::string::ToStr (fge::Vector2u const &val) |
Convert a vector2<unsigned int> to a string. | |
FGE_API std::string | fge::string::ToStr (fge::Vector2i const &val) |
Convert a vector2<int> to a string. | |
FGE_API std::string | fge::string::ToStr (fge::Vector3f const &val) |
Convert a vector3<float> to a string. | |
FGE_API std::string | fge::string::ToStr (fge::Vector3i const &val) |
Convert a vector3<int> to a string. | |
FGE_API std::string | fge::string::ToStr (fge::Property const &val) |
Convert a Property to a string. | |
template<class T > | |
std::string | fge::string::ToStr (std::list< T > const &val, char separator=' ') |
Convert a list of value to a string. | |
template<class T > | |
std::string | fge::string::ToStr (std::vector< T > const &val, char separator=' ') |
Convert a vector of value to a string. | |
FGE_API std::size_t | fge::string::Split (std::string const &str, std::vector< std::string > &output, char separator) |
Split a string into a vector of string. | |
Everything related to strings.
FGE_API bool fge::string::IsValidUtf8String | ( | std::string const & | str | ) |
Check if the provided string has valid utf8 encoded chars.
str | The string to check |
FGE_API std::size_t fge::string::Split | ( | std::string const & | str, |
std::vector< std::string > & | output, | ||
char | separator ) |
Split a string into a vector of string.
str | The string to split |
output | The vector to fill |
separator | The separator to use |
FGE_API bool fge::string::ToBool | ( | std::string const & | str | ) |
Convert efficiently a string to a bool.
str | The string to convert |
FGE_API double fge::string::ToDouble | ( | std::string const & | str | ) |
Convert efficiently a string to a double.
str | The string to convert |
FGE_API float fge::string::ToFloat | ( | std::string const & | str | ) |
Convert efficiently a string to a float.
str | The string to convert |
FGE_API int fge::string::ToInt | ( | std::string const & | str | ) |
Convert efficiently a string to an int.
str | The string to convert |
FGE_API int16_t fge::string::ToInt16 | ( | std::string const & | str | ) |
Convert efficiently a string to an int16_t.
str | The string to convert |
FGE_API int32_t fge::string::ToInt32 | ( | std::string const & | str | ) |
Convert efficiently a string to an int32_t.
str | The string to convert |
FGE_API int64_t fge::string::ToInt64 | ( | std::string const & | str | ) |
Convert efficiently a string to an int64_t.
str | The string to convert |
FGE_API int8_t fge::string::ToInt8 | ( | std::string const & | str | ) |
Convert efficiently a string to an int8_t.
str | The string to convert |
FGE_API long long int fge::string::ToLong | ( | std::string const & | str | ) |
Convert efficiently a string to an long long int.
str | The string to convert |
FGE_API void * fge::string::ToPtr | ( | std::string const & | str | ) |
Convert a string to a pointer (address)
The contained string must be a hexadecimal number and can be prefixed by 0x or 0X.
str | The string to convert |
FGE_API std::string fge::string::ToStr | ( | bool | val | ) |
Convert efficiently a boolean to a string.
Note that this function return "1" for true and "0" for false.
val | The boolean to convert |
FGE_API std::string fge::string::ToStr | ( | char | val | ) |
Convert efficiently a char to a string.
val | The char to convert |
FGE_API std::string fge::string::ToStr | ( | char16_t | val | ) |
Convert efficiently a char16_t to a string.
val | The char16_t to convert |
FGE_API std::string fge::string::ToStr | ( | char32_t | val | ) |
Convert efficiently a char32_t to a string.
val | The char32_t to convert |
FGE_API std::string fge::string::ToStr | ( | double | val | ) |
Convert efficiently a double to a string.
val | The double to convert |
FGE_API std::string fge::string::ToStr | ( | fge::Property const & | val | ) |
FGE_API std::string fge::string::ToStr | ( | fge::Vector2f const & | val | ) |
Convert a vector2<float> to a string.
val | The vector2 to convert |
FGE_API std::string fge::string::ToStr | ( | fge::Vector2i const & | val | ) |
Convert a vector2<int> to a string.
val | The vector2 to convert |
FGE_API std::string fge::string::ToStr | ( | fge::Vector2u const & | val | ) |
Convert a vector2<unsigned int> to a string.
val | The vector2 to convert |
FGE_API std::string fge::string::ToStr | ( | fge::Vector3f const & | val | ) |
Convert a vector3<float> to a string.
val | The vector3 to convert |
FGE_API std::string fge::string::ToStr | ( | fge::Vector3i const & | val | ) |
Convert a vector3<int> to a string.
val | The vector3 to convert |
FGE_API std::string fge::string::ToStr | ( | float | val | ) |
Convert efficiently a float to a string.
val | The float to convert |
FGE_API std::string fge::string::ToStr | ( | int | val | ) |
Convert efficiently a int to a string.
val | The int to convert |
FGE_API std::string fge::string::ToStr | ( | long double | val | ) |
Convert efficiently a long double to a string.
val | The long double to convert |
FGE_API std::string fge::string::ToStr | ( | long int | val | ) |
Convert efficiently a long int to a string.
val | The long int to convert |
FGE_API std::string fge::string::ToStr | ( | long long int | val | ) |
Convert efficiently a long long int to a string.
val | The long long int to convert |
FGE_API std::string fge::string::ToStr | ( | short int | val | ) |
Convert efficiently a short int to a string.
val | The short int to convert |
FGE_API std::string fge::string::ToStr | ( | signed char | val | ) |
Convert efficiently a signed char to a string.
val | The signed char to convert |
std::string fge::string::ToStr | ( | std::list< T > const & | val, |
char | separator = ' ' ) |
Convert a list of value to a string.
T | The type of the list |
val | The list to convert |
separator | The wanted separator between each value |
std::string fge::string::ToStr | ( | std::optional< T > const & | val | ) |
Convert a optional value to a string.
Return NO_VALUE if the optional doesn't have a value.
val | The optional value to convert |
std::string fge::string::ToStr | ( | std::vector< T > const & | val, |
char | separator = ' ' ) |
Convert a vector of value to a string.
T | The type of the list |
val | The vector to convert |
separator | The wanted separator between each value |
FGE_API std::string fge::string::ToStr | ( | unsigned char | val | ) |
Convert efficiently a unsigned char to a string.
val | The unsigned char to convert |
FGE_API std::string fge::string::ToStr | ( | unsigned int | val | ) |
Convert efficiently a unsigned int to a string.
val | The unsigned int to convert |
FGE_API std::string fge::string::ToStr | ( | unsigned long int | val | ) |
Convert efficiently a unsigned long int to a string.
val | The unsigned long int to convert |
FGE_API std::string fge::string::ToStr | ( | unsigned long long int | val | ) |
Convert efficiently a unsigned long long int to a string.
val | The unsigned long long int to convert |
FGE_API std::string fge::string::ToStr | ( | unsigned short int | val | ) |
Convert efficiently a unsigned short int to a string.
val | The unsigned short int to convert |
FGE_API std::string fge::string::ToStr | ( | void * | val | ) |
Convert a pointer (address) to a string.
This function write the address in hexadecimal format.
val | The address to convert |
FGE_API std::string fge::string::ToStr | ( | void const * | val | ) |
Convert a pointer (address) to a string.
This function write the address in hexadecimal format.
val | The address to convert |
FGE_API std::string fge::string::ToStr | ( | wchar_t | val | ) |
Convert efficiently a wchar_t to a string.
val | The wchar_t to convert |
FGE_API unsigned int fge::string::ToUint | ( | std::string const & | str | ) |
Convert efficiently a string to an unsigned int.
str | The string to convert |
FGE_API uint16_t fge::string::ToUint16 | ( | std::string const & | str | ) |
Convert efficiently a string to an uint16_t.
str | The string to convert |
FGE_API uint32_t fge::string::ToUint32 | ( | std::string const & | str | ) |
Convert efficiently a string to an uint32_t.
str | The string to convert |
FGE_API uint64_t fge::string::ToUint64 | ( | std::string const & | str | ) |
Convert efficiently a string to an uint64_t.
str | The string to convert |
FGE_API uint8_t fge::string::ToUint8 | ( | std::string const & | str | ) |
Convert efficiently a string to an uint8_t.
str | The string to convert |
FGE_API unsigned long long int fge::string::ToUlong | ( | std::string const & | str | ) |
Convert efficiently a string to an unsigned long long int.
str | The string to convert |
FGE_API fge::Vector2f fge::string::ToVec2f | ( | std::string const & | str | ) |
Convert a string to a vector2<float>
The vector value contained in the string must be separated by a space
str | The string to convert |
FGE_API fge::Vector2i fge::string::ToVec2i | ( | std::string const & | str | ) |
Convert a string to a vector2<int>
The vector value contained in the string must be separated by a space
str | The string to convert |
FGE_API fge::Vector2u fge::string::ToVec2u | ( | std::string const & | str | ) |
Convert a string to a vector2<unsigned int>
The vector value contained in the string must be separated by a space
str | The string to convert |