mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
refactor
This commit is contained in:
parent
3cd648e10c
commit
b38afe9e34
14 changed files with 837 additions and 684 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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_
|
||||
Loading…
Add table
Add a link
Reference in a new issue