Shipwright/libultraship/libultraship/stox.h
M4xw d24c8453db git subrepo clone https://github.com/HarbourMasters/libultraship.git
subrepo:
  subdir:   "libultraship"
  merged:   "a484cda98"
upstream:
  origin:   "https://github.com/HarbourMasters/libultraship.git"
  branch:   "main"
  commit:   "a484cda98"
git-subrepo:
  version:  "0.4.1"
  origin:   "???"
  commit:   "???"
2022-03-22 02:52:44 +01:00

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);
}