This commit is contained in:
MihailRis
2024-02-04 23:45:15 +03:00
parent 3cd648e10c
commit b38afe9e34
14 changed files with 837 additions and 684 deletions
+4
View File
@@ -279,3 +279,7 @@ double util::parse_double(const std::string& str) {
}
return d;
}
double util::parse_double(const std::string& str, size_t offset, size_t len) {
return parse_double(str.substr(offset, len));
}
+1
View File
@@ -30,6 +30,7 @@ namespace util {
extern int replaceAll(std::string& str, const std::string& from, const std::string& to);
extern double parse_double(const std::string& str);
extern double parse_double(const std::string& str, size_t offset, size_t len);
}
#endif // UTIL_STRINGUTIL_H_