David Robillard
532f6aad4a
NOTE: Compiles, but broken (crash on adding MIDI track). git-svn-id: svn://localhost/ardour2/branches/midi@1292 d708f5d6-7413-0410-9779-e7cbd77b26cf
14 lines
227 B
C++
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 ('.'));
|
|
|
|
}
|