13
0
livetrax/libs/pbd/basename.cc
Paul Davis afa29d3190 use ustring more; handle embedding of "paired" files as per mantis #1362
git-svn-id: svn://localhost/ardour2/trunk@1241 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-12-21 18:38:00 +00:00

14 lines
227 B
C++

#include <pbd/basename.h>
#include <glibmm/miscutils.h>
using Glib::ustring;
ustring
PBD::basename_nosuffix (ustring str)
{
ustring base = Glib::path_get_basename (str);
return base.substr (0, base.find_last_of ('.'));
}