Logo Search packages:      
Sourcecode: ardour version File versions

std::string Glib::filename_from_uri ( const Glib::ustring uri  ) 

Converts an escaped UTF-8 encoded URI to a local filename in the encoding used for filenames.

Parameters:
uri A string in the encoding for filenames.
Returns:
The resulting filename.
Exceptions:
Glib::ConvertError 

Definition at line 250 of file convert.cc.

References Glib::ustring::c_str().

{
  GError* error = 0;
  char *const buf = g_filename_from_uri(uri.c_str(), 0, &error);

  if(error)
    Error::throw_exception(error);

  return std::string(ScopedPtr<char>(buf).get());
}


Generated by  Doxygen 1.6.0   Back to index