Miscellaneous utility types and functions. More...
Typedefs | |
typedef unsigned long long | CacheSize_t |
typedef int | TIdentity |
Functions | |
v3 | MakeColorRGB (u8 r, u8 g, u8 b) |
v4 | MakeColorRGBA (u8 r, u8 g, u8 b, u8 a) |
v4 | RGBA32ToColor (u32 rgba) |
v4 | ARGB32ToColor (u32 argb) |
u32 | MakeColorRGBA32 (u8 r, u8 g, u8 b, u8 a) |
u32 | MakeColorUnityColor32 (u8 r, u8 g, u8 b, u8 a) |
v4 | ToFloatColorRange (double r, double g, double b, double a) |
void | ParseToBuffers (Helpers::IFileIO &fileIO, const CubeTextureName &textureName, std::vector< const std::vector< Byte > * > &buffers) |
bool | operator== (const IIdentity &lhs, const IIdentity &rhs) |
bool | operator!= (const IIdentity &lhs, const IIdentity &rhs) |
template<typename T , size_t N> | |
T * | end (T(&array)[N]) |
template<typename T , size_t N> | |
std::vector< T > | makeVector (const T(&array)[N]) |
std::ostream & | operator<< (std::ostream &out, MD5 md5) |
std::string | md5 (const std::string str) |
bool | TryGetStringValueFromSerializedJson (const std::string &serializedJson, const std::string &field, std::string &out_value) |
bool | TryGetDoubleValueFromSerializedJson (const std::string &serializedJson, const std::string &field, double &out_value) |
bool | CaseInsensitiveStringEquals (const std::string &a, const std::string &b) |
std::string | ToLower (const std::string &str) |
size_t | Split (const std::string &s, char delim, std::vector< std::string > &out_elems) |
std::string | TrimRight (const std::string &str, const std::string &charsToTrim) |
bool | TryParseLatLong (const std::string &latString, const std::string &lonString, Eegeo::Space::LatLong &out_LatLon) |
bool | TryParseDouble (const std::string &string, double &out_double) |
bool | TryParseInt (const std::string &string, int &out_int) |
void | SearchReplace (std::string &in_out_originalString, const std::string &searchTerm, const std::string &replaceTerm) |
bool | Contains (std::string &originalString, const std::string &searchTerm) |
void | PadRight (std::stringstream &stream, const std::string &string, int lineLengthToPadTo) |
void | PadLeftRight (std::stringstream &stream, const std::string &string, int leftPadding, int lineLengthToPadTo) |
std::string | FloatingPointToString (float v, int decimalPlaces) |
std::string | FloatingPointToString (double v, int decimalPlaces) |
std::string | Join (const std::vector< std::string > &tokens, const std::string separator) |
std::string | CamelCaseToSnakeCase (const std::string &camelCase) |
template<typename T > | |
std::string | Join (const std::vector< T > &values, const std::string &seperator) |
Miscellaneous utility types and functions.