Shipwright/libultraship/libultraship/stox.h

9 lines
292 B
C++

#pragma once
#include <string>
namespace Ship {
bool stob(const std::string& s, bool defaultVal = false);
int32_t stoi(const std::string& s, int32_t defaultVal = 0);
float stof(const std::string& s, float defaultVal = 1.0f);
int64_t stoll(const std::string& s, int64_t defaultVal = 0);
}