Paul Davis
afa29d3190
git-svn-id: svn://localhost/ardour2/trunk@1241 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 ('.'));
|
|
|
|
}
|