Logo Search packages:      
Sourcecode: ardour version File versions

std::string Glib::path_get_basename ( const std::string &  filename  ) 

Gets the name of the file without any leading directory components.

Parameters:
filename The name of the file.
Returns:
The name of the file without any leading directory components.

Definition at line 133 of file miscutils.cc.

{
  const ScopedPtr<char> buf (g_path_get_basename(filename.c_str()));
  return std::string(buf.get());
}


Generated by  Doxygen 1.6.0   Back to index