18 #ifndef FILESYSTEM_EXT_HPP_ 19 #define FILESYSTEM_EXT_HPP_ 21 #include <boost/filesystem.hpp> 24 namespace filesystem {
37 if (first.string().find(
"/") == 0) {
42 std::pair<path::iterator, path::iterator> iteratorPair = std::mismatch(first.begin(), first.end(), second.begin());
43 for (path::iterator iter = first.begin(); iter != iteratorPair.first; iter++) {
58 std::pair<path::iterator, path::iterator> iteratorPair = std::mismatch(base.begin(), base.end(), subject.begin());
59 for (path::iterator iter = iteratorPair.second; iter != subject.end(); iter++) {
62 if (subpath.string() ==
".") {
static path relative_path(path &subject, path base=current_path())
static path common_prefix(path &first, path &second)