 |
Blamite Game Engine - Strings
00381.04.17.23.2324.blamite
A library containing general purpose utilities and classes for use in multiple projects.
|
Go to the documentation of this file.
8 #define STRINGS_API __declspec(dllexport)
10 #define STRINGS_API __declspec(dllimport)
13 #define bstof(x) BlamStrings::Converters::StringToFloat(x);
14 #define bstod(x) BlamStrings::Converters::StringToDouble(x);
15 #define bstoi(x) BlamStrings::Converters::StringToInt(x);
#define STRINGS_API
Definition: converters.h:10
Namespace for Blamite's shared C++ library.
Definition: events.h:172
STRINGS_API int StringToInt(std::string string)
Converts a string representation of an integer to an int.
Definition: converters.cpp:130
STRINGS_API std::string BoolToString(bool value)
Converts a boolean value to a string.
Definition: converters.cpp:230
STRINGS_API std::wstring ConvertStringToWstring(std::string string)
Converts a String to a Wide String.
Definition: converters.cpp:12
STRINGS_API std::string BytesToString(void *bytes, int bytes_length)
Converts a series of bytes to a string.
Definition: converters.cpp:184
Structure representing a 3D vector.
Definition: vector.h:80
STRINGS_API std::string WstringToString(std::wstring wide_string)
Converts a Wide String to a String.
Definition: converters.cpp:36
STRINGS_API int64_t StringToInt64(std::string string)
Converts a string representation of an integer to an int64_t.
Definition: converters.cpp:148
Structure representing a 4D vector.
Definition: vector.h:162
STRINGS_API bool IsStringInt(std::string string)
Checks whether or not a string is a valid representation of an integer.
Definition: converters.cpp:202
STRINGS_API double StringToDouble(std::string string)
Converts a string representation of a double to a double.
Definition: converters.cpp:166
STRINGS_API bool HexStringToChar(std::string hex, char *character)
Converts a hexadecimal code to its respective character.
Definition: converters.cpp:76
STRINGS_API std::string FloatToString(float value, int max_decimals=-1)
Converts a floating-point number to a string.
Definition: converters.cpp:240
STRINGS_API bool IsStringFloat(std::string string)
Checks whether or not a string is a valid representation of a float.
Definition: converters.cpp:216
STRINGS_API bool StringToBool(std::string string)
Converts a string to a boolean.
Definition: converters.cpp:58
STRINGS_API BlamVector4 StringToVector4(std::string string, bool *result=nullptr)
Converts a string to a 4D vector.
Definition: converters.cpp:358
Structure representing a 2D vector.
Definition: vector.h:24
STRINGS_API float StringToFloat(std::string string)
Converts a string representation of a float to a float.
Definition: converters.cpp:112
STRINGS_API BlamVector2 StringToVector2(std::string string, bool *result=nullptr)
Converts a string to a 2D vector.
Definition: converters.cpp:273
STRINGS_API BlamVector3 StringToVector3(std::string string, bool *result=nullptr)
Converts a string to a 3D vector.
Definition: converters.cpp:315