libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
stox.h
Go to the documentation of this file.
1#pragma once
2#include <string>
3#include <cstdint>
4
5namespace Ship {
6
19bool stob(const std::string& s, bool defaultVal = false);
20
27int32_t stoi(const std::string& s, int32_t defaultVal = 0);
28
35float stof(const std::string& s, float defaultVal = 1.0f);
36
43int64_t stoll(const std::string& s, int64_t defaultVal = 0);
44
45} // namespace Ship
Core namespace for the libultraship engine framework.
Definition gfx_direct3d_common.h:14
bool stob(const std::string &s, bool defaultVal=false)
Converts a string to a boolean value.
int64_t stoll(const std::string &s, int64_t defaultVal=0)
Converts a string to a 64-bit signed integer.
int32_t stoi(const std::string &s, int32_t defaultVal=0)
Converts a string to a 32-bit signed integer.
float stof(const std::string &s, float defaultVal=1.0f)
Converts a string to a float.