00001
00002 #ifndef _LIBGNOMEVFSMM_UTILS_H
00003 #define _LIBGNOMEVFSMM_UTILS_H
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #include <libgnomevfsmm/types.h>
00026 #include <glibmm/ustring.h>
00027
00028
00029 namespace Gnome
00030 {
00031
00032 namespace Vfs
00033 {
00034
00042 Glib::ustring format_file_size_for_display(FileSize size);
00043
00049 Glib::ustring escape_string(const Glib::ustring& unescaped_string);
00050
00057 Glib::ustring escape_path_string(const Glib::ustring& path);
00058
00065 Glib::ustring escape_host_and_path_string(const Glib::ustring& path);
00066
00073 Glib::ustring escape_slashes(const Glib::ustring& unescaped_string);
00074
00085 Glib::ustring unescape_string(const Glib::ustring& escaped_string, const Glib::ustring& illegal_characters = Glib::ustring());
00086
00101 Glib::ustring unescape_string_for_display(const Glib::ustring& escaped_string);
00102
00112 Glib::ustring make_uri_canonical(const Glib::ustring& uri);
00113
00114 Glib::ustring make_path_name_canonical(const Glib::ustring& path);
00115
00123 Glib::ustring expand_initial_tilde(const Glib::ustring& path);
00124
00125
00133 Glib::ustring get_local_path_from_uri(const Glib::ustring& uri);
00134
00140 Glib::ustring get_uri_from_local_path(const Glib::ustring& local_full_path);
00141
00148 bool is_executable_command_string(const Glib::ustring& command_string);
00149
00150 Glib::ustring icon_path_from_filename(const Glib::ustring& filename);
00151
00152
00153 }
00154 }
00155
00156 #endif //_LIBGNOMEVFSMM_UTILS_H
00157