10 #include <android/ndk-version.h> 12 #if __NDK_MAJOR__ <= 16 18 std::ostringstream os;
27 auto x = strtoimax(value.c_str(), &endptr, 10);
29 return static_cast<T>(
x);
34 return stoT<long long>(value);
39 return stoT<unsigned long>(value);
44 return stoT<int>(value);
50 return strtof(value.c_str(), &pEnd);
56 return strtod(value.c_str(), &pEnd);
61 str.setf(std::ios_base::fixed | std::ios_base::scientific, std::ios_base::floatfield);
65 #endif // ANDROID_NDK_MAJOR float stof(const std::string &value)
T stoT(const std::string &value)
long long stoll(const std::string &value)
double stod(const std::string &value)
int stoi(const std::string &value)
std::ios_base & hexfloat(std::ios_base &str)
unsigned long stoul(const std::string &value)
std::string to_string(T value)