Get rid of boost posix_time
This commit is contained in:
@@ -21,7 +21,6 @@
|
||||
#include <sstream>
|
||||
#include <iomanip>
|
||||
|
||||
#include <boost/date_time/posix_time/posix_time.hpp>
|
||||
#include <boost/algorithm/string/split.hpp>
|
||||
#include <boost/algorithm/string.hpp>
|
||||
|
||||
@@ -77,18 +76,6 @@ bool readList(const std::string& str, const std::string& separators, std::list<s
|
||||
return !str.empty();
|
||||
}
|
||||
|
||||
std::string
|
||||
durationToString(boost::posix_time::time_duration duration, std::string format)
|
||||
{
|
||||
boost::posix_time::time_facet* facet = new boost::posix_time::time_facet();
|
||||
facet->time_duration_format(format.c_str());
|
||||
std::ostringstream oss;
|
||||
oss.imbue(std::locale(oss.getloc(), facet));
|
||||
oss << duration;
|
||||
|
||||
return oss.str();
|
||||
}
|
||||
|
||||
std::vector<std::string>
|
||||
splitString(std::string string, std::string separators)
|
||||
{
|
||||
|
||||
@@ -32,9 +32,6 @@
|
||||
bool
|
||||
readList(const std::string& str, const std::string& separators, std::list<std::string>& results);
|
||||
|
||||
//std::string
|
||||
//durationToString(boost::posix_time::time_duration duration, std::string format);
|
||||
|
||||
std::vector<std::string>
|
||||
splitString(std::string string, std::string separators);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user