mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 00:04:56 +01:00
13 lines
227 B
C++
13 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 ('.'));
|
|
|
|
}
|