mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-29 21:02:18 -05:00
9 lines
292 B
C
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);
|
||
|
}
|