13
0
livetrax/libs/pbd/basename.cc
David Robillard 532f6aad4a Merged with trunk R1283.
NOTE: Compiles, but broken (crash on adding MIDI track).


git-svn-id: svn://localhost/ardour2/branches/midi@1292 d708f5d6-7413-0410-9779-e7cbd77b26cf
2007-01-09 23:24:54 +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 ('.'));
}