Files
Shiip-of-Hakinian-Espanol/libultraship/include/ship/utils/Utils.h
2026-03-30 15:33:19 -06:00

21 lines
512 B
C++

#pragma once
#include <string>
#include <vector>
#include <sstream>
namespace Ship {
namespace Math {
float clamp(float d, float min, float max);
size_t HashCombine(size_t lhs, size_t rhs);
template <typename Numeric> bool IsNumber(const std::string& s) {
Numeric n;
return ((std::istringstream(s) >> n >> std::ws).eof());
}
} // namespace Math
std::vector<std::string> splitText(const std::string& text, char separator, bool keepQuotes);
std::string toLowerCase(std::string in);
} // namespace Ship