23 #ifndef OST_BOOST_FILESYSTEM_HELPER_HH
24 #define OST_BOOST_FILESYSTEM_HELPER_HH
26 #include <boost/filesystem/path.hpp>
31 String BFPathToString(
const boost::filesystem::path& path)
33 #if BOOST_FILESYSTEM_VERSION==3 || BOOST_VERSION<103400
36 return path.file_string();
40 inline String BFPathStem(
const boost::filesystem::path& path) {
41 #if BOOST_FILESYSTEM_VERSION<103400
42 String name = BFPathToString(path);
43 size_t n = name.rfind(
'.');
44 return name.substr(0, n);
54 #endif // OST_BOOST_FILESYSTEM_HELPER