10 #if defined(__ANDROID__) && defined(__GLIBCXX__)
16 return atoi(str.c_str());
20 return static_cast<float>(atof(str.c_str()));
37 return toString(
static_cast<int32_t
>(t));
41 return toString(
static_cast<uint32_t
>(t));
45 return toString(
static_cast<int32_t
>(t));
49 return toString(
static_cast<uint32_t
>(t));
52 template <
typename = std::enable_if<!std::is_same_v<u
int64_t,
unsigned long>>>
54 return toString(
static_cast<uint64_t
>(t));
57 template <
typename = std::enable_if<!std::is_same_v<u
int64_t,
unsigned long long>>>
59 return toString(
static_cast<uint64_t
>(t));
62 template <
typename = std::enable_if<!std::is_same_v<
int64_t,
long>>>
64 return toString(
static_cast<int64_t
>(t));
67 template <
typename = std::enable_if<!std::is_same_v<
int64_t,
long long>>>
69 return toString(
static_cast<int64_t
>(t));
73 return toString(
static_cast<double>(t), decimal);
77 return toString(
static_cast<double>(t), decimal);
96 #if defined(__ANDROID__) && defined(__GLIBCXX__)
100 template <
typename T>
std::unique_ptr< Expression > string(std::unique_ptr< Expression >, std::unique_ptr< Expression > def=nullptr)
float stof(const std::string &str)
std::string toHex(uint32_t)
std::string toString(const CanonicalTileID &)