Elaztek Developer Hub
Blamite Game Engine - Strings  00326.06.27.21.0407.blamite
A library containing general purpose utilities and classes for use in multiple projects.
converters.h File Reference
#include <string>

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 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...
 

Macro Definition Documentation

◆ bstod

#define bstod (   x)    BlamStrings::Converters::StringToDouble(x);

Macro for converting string to double. Meant as a drop-in replacement for stod()

◆ bstof

#define bstof (   x)    BlamStrings::Converters::StringToFloat(x);

Macro for converting string to float. Meant as a drop-in replacement for stof()

◆ bstoi

#define bstoi (   x)    BlamStrings::Converters::StringToInt(x);

Macro for converting string to int. Meant as a drop-in replacement for stoi()

◆ STRINGS_API

#define STRINGS_API   __declspec(dllimport)