utils.h File Reference

#include <libgnomevfsmm/types.h>
#include <libgnomevfsmm/exception.h>
#include <glibmm/ustring.h>

Go to the source code of this file.

Namespaces

namespace  Gnome
namespace  Gnome::Vfs

Functions

Glib::ustring Gnome::Vfs::format_file_size_for_display (FileSize size)
 Formats the file size passed in sizein a way that is easy for the user to read.
Glib::ustring Gnome::Vfs::escape_string (const Glib::ustring &unescaped_string)
 Escapes , replacing any and all special characters with equivalent escape sequences.
Glib::ustring Gnome::Vfs::escape_path_string (const Glib::ustring &path)
 Escapes , replacing only special characters that would not be found in paths (so '/', '&', '=', and '?' will not be escaped by this function).
Glib::ustring Gnome::Vfs::escape_host_and_path_string (const Glib::ustring &path)
 Escapes path, replacing only special characters that would not be found in paths or host name (so '/', '&', '=', ':', '@' and '?' will not be escaped by this function).
Glib::ustring Gnome::Vfs::escape_slashes (const Glib::ustring &unescaped_string)
 Escapes only '/' and '' characters in , replacing them with their escape sequence equivalents.
Glib::ustring Gnome::Vfs::unescape_string (const Glib::ustring &escaped_string, const Glib::ustring &illegal_characters=Glib::ustring())
 Decodes escaped characters (i.e.
Glib::ustring Gnome::Vfs::unescape_string_for_display (const Glib::ustring &escaped_string)
 Similar to unescape_string(), but it returns something semi-intelligable to a user even upon receiving traumatic input such as 00 or URIs in bad form.
Glib::ustring Gnome::Vfs::make_uri_canonical (const Glib::ustring &uri)
 gnome_vfs_make_path_name_canonical: : a file path, relative or absolute
Glib::ustring Gnome::Vfs::make_path_name_canonical (const Glib::ustring &path)
Glib::ustring Gnome::Vfs::expand_initial_tilde (const Glib::ustring &path)
 If path starts with a ~, representing the user's home directory, expand it to the actual path location.
Glib::ustring Gnome::Vfs::get_local_path_from_uri (const Glib::ustring &uri)
 Create a local path for a file:/// URI.
Glib::ustring Gnome::Vfs::get_uri_from_local_path (const Glib::ustring &local_full_path)
 Returns a file:/// URI for the local path .
bool Gnome::Vfs::is_executable_command_string (const Glib::ustring &command_string)
 Checks if command_string starts with the full path of an executable file or an executable in $PATH.
Glib::ustring Gnome::Vfs::icon_path_from_filename (const Glib::ustring &filename)
void Gnome::Vfs::url_show (const Glib::ustring &url) throw (exception)


Generated on Tue Aug 22 09:07:07 2006 for libgnomevfsmm by  doxygen 1.4.7