Blamite Game Engine - blam!  00263.10.17.20.0001.blamite
The core library for the Blamite Game Engine.
Namespaces | Macros | Functions
converters.h File Reference
#include "components\core\utils\string\string.h"
#include <string>

Go to the source code of this file.

Namespaces

 Blam
 Namespace surrounding all major engine components.
 
 Blam::Converters
 Namespace containing functions to convert between various types of variables.
 

Macros

#define BLAM
 
#define bstof(x)   Blam::Converters::StringToFloat(x);
 Macro for converting string to float. Meant as a drop-in replacement for stof() More...
 
#define bstod(x)   Blam::Converters::StringToDouble(x);
 Macro for converting string to double. Meant as a drop-in replacement for stod() More...
 
#define bstoi(x)   Blam::Converters::StringToInt(x);
 Macro for converting string to int. Meant as a drop-in replacement for stoi() More...
 

Functions

std::wstring Blam::Converters::ConvertStringToWstring (std::string string)
 Converts a String to a Wide String. More...
 
std::string Blam::Converters::WstringToString (std::wstring wide_string)
 Converts a Wide String to a String. More...
 
bool Blam::Converters::StringToBool (std::string string)
 Converts a string to a boolean. More...
 
bool Blam::Converters::HexStringToChar (std::string hex, char *character)
 Converts a hexadecimal code to its respective character. More...
 
float Blam::Converters::StringToFloat (std::string string)
 Converts a string representation of a float to a float. More...
 
int Blam::Converters::StringToInt (std::string string)
 Converts a string representation of an integer to an int. More...
 
double Blam::Converters::StringToDouble (std::string string)
 Converts a string representation of a double to a double. More...
 
std::string Blam::Converters::BytesToString (void *bytes, int bytes_length)
 Converts a series of bytes to a string. More...
 

Macro Definition Documentation

◆ BLAM

#define BLAM

◆ bstod

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

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

◆ bstof

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

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

◆ bstoi

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

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