2 #ifndef _LIBGNOMEVFSMM_UTILS_H
3 #define _LIBGNOMEVFSMM_UTILS_H
27 #include <glibmm/ustring.h>
50 Glib::ustring
escape_string(
const Glib::ustring& unescaped_string);
74 Glib::ustring
escape_slashes(
const Glib::ustring& unescaped_string);
86 Glib::ustring
unescape_string(
const Glib::ustring& escaped_string,
const Glib::ustring& illegal_characters = Glib::ustring());
153 #ifdef GLIBMM_EXCEPTIONS_ENABLED
154 void url_show (
const Glib::ustring& url)
throw(exception);
156 void url_show (
const Glib::ustring& url, std::auto_ptr<Gnome::Vfs::exception>& error);
157 #endif //GLIBMM_EXCEPTIONS_ENABLED
165 #endif //_LIBGNOMEVFSMM_UTILS_H
Glib::ustring get_uri_from_local_path(const Glib::ustring &local_full_path)
Returns a file:/// URI for the local path .
Glib::ustring unescape_string(const Glib::ustring &escaped_string, const Glib::ustring &illegal_characters=Glib::ustring())
Decodes escaped characters (i.e.
Glib::ustring make_path_name_canonical(const Glib::ustring &path)
Glib::ustring 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 '/'...
Glib::ustring format_file_size_for_display(FileSize size)
Formats the file size passed in sizein a way that is easy for the user to read.
bool 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 icon_path_from_filename(const Glib::ustring &filename)
Glib::ustring get_local_path_from_uri(const Glib::ustring &uri)
Create a local path for a file:/// URI.
Glib::ustring escape_slashes(const Glib::ustring &unescaped_string)
Escapes only '/' and '' characters in , replacing them with their escape sequence equivalents...
Glib::ustring unescape_string_for_display(const Glib::ustring &escaped_string)
Similar to unescape_string(), but it returns something semi-intelligable to a user even upon receivin...
Glib::ustring escape_string(const Glib::ustring &unescaped_string)
Escapes , replacing any and all special characters with equivalent escape sequences.
GnomeVFSFileSize FileSize
Definition: types.h:29
Glib::ustring 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 expand_initial_tilde(const Glib::ustring &path)
If path starts with a ~, representing the user's home directory, expand it to the actual path locatio...
Glib::ustring make_uri_canonical(const Glib::ustring &uri)
gnome_vfs_make_path_name_canonical: : a file path, relative or absolute
void url_show(const Glib::ustring &url)