32 #include <boost/date_time/posix_time/posix_time.hpp> 33 #include <boost/date_time/posix_time/posix_time_io.hpp> 34 #include <boost/format.hpp> 36 using boost::posix_time::time_facet;
37 using boost::posix_time::microsec_clock;
78 const size_t trailingSlashPosition = file.find_last_of(
"/\\");
80 if(trailingSlashPosition == std::string::npos)
return file;
82 if(trailingSlashPosition+1 >= file.length())
return file;
84 return file.substr(trailingSlashPosition+1);