| typedef GnomeVFSFileSize Gnome::Vfs::FileSize |
| typedef GnomeVFSFileOffset Gnome::Vfs::FileOffset |
| void Gnome::Vfs::init | ( | ) |
| void Gnome::Vfs::handle_result | ( | GnomeVFSResult | result | ) | throw (Gnome::Vfs::exception) |
| 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.
Gives the size in bytes, kilobytes, megabytes or gigabytes, choosing whatever is appropriate.
| size |
| Glib::ustring Gnome::Vfs::escape_string | ( | const Glib::ustring & | unescaped_string | ) |
Escapes , replacing any and all special characters with equivalent escape sequences.
| unscaped_string | String to be escaped |
| 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).
| path | String to be escaped |
| 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).
| path | String to be escaped Return value A string equivalent to path but with non-path/host characters escaped |
| Glib::ustring Gnome::Vfs::escape_slashes | ( | const Glib::ustring & | unescaped_string | ) |
Escapes only '/' and '' characters in , replacing them with their escape sequence equivalents.
| unescaped_string | String to be escaped |
| Glib::ustring Gnome::Vfs::unescape_string | ( | const Glib::ustring & | escaped_string, | |
| const Glib::ustring & | illegal_characters = Glib::ustring() | |||
| ) |
Decodes escaped characters (i.e.
PERCENTxx sequences) in escaped_string. Characters are encoded in PERCENTxy form, where xy is the ASCII hex code for character 16x+y.
| escaped_string | An escaped URI, path, or other string | |
| illegal_characters | A string containing a sequence of characters considered "illegal", '' is automatically in this list. |
| 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.
WARNING: You should never use this function on a whole URI! It unescapes reserved characters, and can result in a mangled URI that can not be re-entered. For example, it unescapes "#" "&" and "?", which have special meanings in URI strings.
| escaped_string | The string encoded with escaped sequences. |
| Glib::ustring Gnome::Vfs::make_uri_canonical | ( | const Glib::ustring & | uri | ) |
gnome_vfs_make_path_name_canonical: : a file path, relative or absolute
Calls _gnome_vfs_canonicalize_pathname, allocating storage for the result and providing for a cleaner memory management.
| 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.
| path | a local file path which may start with a '~' |
| Glib::ustring Gnome::Vfs::get_local_path_from_uri | ( | const Glib::ustring & | uri | ) |
Create a local path for a file:/// URI.
Do not use with URIs of other methods00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000