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

10 lines
325 B
C++

#pragma once
#include <string>
#include <cstdint>
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);
} // namespace Ship