r269@gandalf: fugalh | 2006-08-03 20:18:05 -0600

Trunk merge conflicts resolved


git-svn-id: svn://localhost/ardour2/branches/undo@756 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Hans Fugal 2006-08-04 02:18:45 +00:00
parent b0b7234458
commit 79986643c0
372 changed files with 20759 additions and 10250 deletions

20
libs/pbd/basename.cc Normal file
View file

@ -0,0 +1,20 @@
#include <iostream>
#include <string.h>
#include <pbd/basename.h>
// implement this using Glib::path_get_basename
std::string
PBD::basename_nosuffix (const std::string& str)
{
std::string::size_type slash = str.find_last_of ('/');
std::string noslash;
if (slash == std::string::npos) {
noslash = str;
} else {
noslash = str.substr (slash+1);
}
return noslash.substr (0, noslash.find_last_of ('.'));
}