21 lines
512 B
C++
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
|