Changeset View
Changeset View
Standalone View
Standalone View
src/util/strencodings.cpp
Show First 20 Lines • Show All 445 Lines • ▼ Show 20 Lines | while (ptr < in.size()) { | ||||
indented = indent; | indented = indent; | ||||
} | } | ||||
ptr = finalspace + 1; | ptr = finalspace + 1; | ||||
} | } | ||||
} | } | ||||
return out.str(); | return out.str(); | ||||
} | } | ||||
int64_t atoi64(const char *psz) { | |||||
#ifdef _MSC_VER | |||||
return _atoi64(psz); | |||||
#else | |||||
return strtoll(psz, nullptr, 10); | |||||
#endif | |||||
} | |||||
int64_t atoi64(const std::string &str) { | int64_t atoi64(const std::string &str) { | ||||
#ifdef _MSC_VER | #ifdef _MSC_VER | ||||
return _atoi64(str.c_str()); | return _atoi64(str.c_str()); | ||||
#else | #else | ||||
return strtoll(str.c_str(), nullptr, 10); | return strtoll(str.c_str(), nullptr, 10); | ||||
#endif | #endif | ||||
} | } | ||||
▲ Show 20 Lines • Show All 178 Lines • Show Last 20 Lines |