3 #include <pbd/basename.h>
6 // implement this using Glib::path_get_basename
8 PBD::basename_nosuffix (const std::string& str)
10 std::string::size_type slash = str.find_last_of ('/');
13 if (slash == std::string::npos) {
16 noslash = str.substr (slash+1);
19 return noslash.substr (0, noslash.find_last_of ('.'));