21float clamp(
float d,
float min,
float max);
44template <
typename Numeric>
bool IsNumber(
const std::string& s) {
46 return ((std::istringstream(s) >> n >> std::ws).eof());
58std::vector<std::string>
splitText(
const std::string& text,
char separator,
bool keepQuotes);
size_t HashCombine(size_t lhs, size_t rhs)
Combines two size_t hash values into a single hash.
float clamp(float d, float min, float max)
Clamps d to the inclusive range [min, max].
bool IsNumber(const std::string &s)
Returns true if s represents a valid number of type Numeric.
Definition Utils.h:44
Core namespace for the libultraship engine framework.
Definition gfx_direct3d_common.h:14
std::vector< std::string > splitText(const std::string &text, char separator, bool keepQuotes)
Splits text at each separator character, optionally preserving quoted spans.
std::string toLowerCase(std::string in)
Returns a copy of in with all ASCII letters converted to lower case.