#include <libgnomevfsmm/types.h>
#include <glibmm/ustring.h>
Go to the source code of this file.
Namespaces | |
namespace | Gnome |
namespace | Gnome::Vfs |
Functions | |
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. | |
Glib::ustring | escape_string (const Glib::ustring &unescaped_string) |
Escapes , replacing any and all special characters with equivalent escape sequences. | |
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 | 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 | escape_slashes (const Glib::ustring &unescaped_string) |
Escapes only '/' and '%' characters in , replacing them with their escape sequence equivalents. | |
Glib::ustring | unescape_string (const Glib::ustring &escaped_string, const Glib::ustring &illegal_characters=Glib::ustring()) |
Decodes escaped characters (i.e. | |
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 receiving traumatic input such as 00 or URIs in bad form. | |
Glib::ustring | make_uri_canonical (const Glib::ustring &uri) |
gnome_vfs_make_path_name_canonical: : a file path, relative or absolute | |
Glib::ustring | make_path_name_canonical (const Glib::ustring &path) |
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 location. | |
Glib::ustring | get_local_path_from_uri (const Glib::ustring &uri) |
Create a local path for a file:/// URI. | |
Glib::ustring | get_uri_from_local_path (const Glib::ustring &local_full_path) |
Returns a file:/// URI for the local path . | |
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) |
|
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).
|
|
Escapes , replacing only special characters that would not be found in paths (so '/', '&', '=', and '?' will not be escaped by this function).
|
|
Escapes only '/' and '%' characters in , replacing them with their escape sequence equivalents.
|
|
Escapes , replacing any and all special characters with equivalent escape sequences.
|
|
If path starts with a ~, representing the user's home directory, expand it to the actual path location.
|
|
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.
|
|
Create a local path for a file:/// URI. Do not use with URIs of other methods.
|
|
Returns a file:/// URI for the local path .
|
|
|
|
Checks if command_string starts with the full path of an executable file or an executable in $PATH.
|
|
|
|
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.
|
|
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.
|
|
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.
|