![]() |
Blamite Game Engine - Strings
00385.05.12.23.0209.blamite
A library containing general purpose utilities and classes for use in multiple projects.
|
Include dependency graph for converters.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Namespaces | |
| BlamStrings | |
| Namespace for Blamite's shared C++ library. | |
| BlamStrings::Converters | |
| Namespace containing functions to convert between various types of variables. | |
Macros | |
| #define | STRINGS_API __declspec(dllimport) |
| #define | bstof(x) BlamStrings::Converters::StringToFloat(x); |
Macro for converting string to float. Meant as a drop-in replacement for stof() More... | |
| #define | bstod(x) BlamStrings::Converters::StringToDouble(x); |
Macro for converting string to double. Meant as a drop-in replacement for stod() More... | |
| #define | bstoi(x) BlamStrings::Converters::StringToInt(x); |
Macro for converting string to int. Meant as a drop-in replacement for stoi() More... | |
Functions | |
| STRINGS_API std::wstring | BlamStrings::Converters::ConvertStringToWstring (std::string string) |
| Converts a String to a Wide String. More... | |
| STRINGS_API std::string | BlamStrings::Converters::WstringToString (std::wstring wide_string) |
| Converts a Wide String to a String. More... | |
| STRINGS_API bool | BlamStrings::Converters::StringToBool (std::string string) |
| Converts a string to a boolean. More... | |
| STRINGS_API bool | BlamStrings::Converters::HexStringToChar (std::string hex, char *character) |
| Converts a hexadecimal code to its respective character. More... | |
| STRINGS_API float | BlamStrings::Converters::StringToFloat (std::string string) |
Converts a string representation of a float to a float. More... | |
| STRINGS_API int | BlamStrings::Converters::StringToInt (std::string string) |
Converts a string representation of an integer to an int. More... | |
| STRINGS_API int64_t | BlamStrings::Converters::StringToInt64 (std::string string) |
Converts a string representation of an integer to an int64_t. More... | |
| STRINGS_API double | BlamStrings::Converters::StringToDouble (std::string string) |
Converts a string representation of a double to a double. More... | |
| STRINGS_API std::string | BlamStrings::Converters::BytesToString (void *bytes, int bytes_length) |
| Converts a series of bytes to a string. More... | |
| STRINGS_API bool | BlamStrings::Converters::IsStringInt (std::string string) |
| Checks whether or not a string is a valid representation of an integer. More... | |
| STRINGS_API bool | BlamStrings::Converters::IsStringFloat (std::string string) |
| Checks whether or not a string is a valid representation of a float. More... | |
| STRINGS_API std::string | BlamStrings::Converters::BoolToString (bool value) |
| Converts a boolean value to a string. More... | |
| STRINGS_API std::string | BlamStrings::Converters::FloatToString (float value, int max_decimals=-1) |
| Converts a floating-point number to a string. More... | |
| STRINGS_API BlamVector2 | BlamStrings::Converters::StringToVector2 (std::string string, bool *result=nullptr) |
| Converts a string to a 2D vector. More... | |
| STRINGS_API BlamVector3 | BlamStrings::Converters::StringToVector3 (std::string string, bool *result=nullptr) |
| Converts a string to a 3D vector. More... | |
| STRINGS_API BlamVector4 | BlamStrings::Converters::StringToVector4 (std::string string, bool *result=nullptr) |
| Converts a string to a 4D vector. More... | |
| #define bstod | ( | x | ) | BlamStrings::Converters::StringToDouble(x); |
Macro for converting string to double. Meant as a drop-in replacement for stod()
| #define bstof | ( | x | ) | BlamStrings::Converters::StringToFloat(x); |
Macro for converting string to float. Meant as a drop-in replacement for stof()
| #define bstoi | ( | x | ) | BlamStrings::Converters::StringToInt(x); |
Macro for converting string to int. Meant as a drop-in replacement for stoi()
| #define STRINGS_API __declspec(dllimport) |