<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>libgnomevfsmm: utils.h File Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.5 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="classes.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> </div> <div class="contents"> <h1>utils.h File Reference</h1><code>#include <<a class="el" href="types_8h-source.html">libgnomevfsmm/types.h</a>></code><br> <code>#include <<a class="el" href="exception_8h-source.html">libgnomevfsmm/exception.h</a>></code><br> <code>#include <glibmm/ustring.h></code><br> <p> <a href="utils_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Namespaces</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">namespace </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGnome.html">Gnome</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">namespace </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGnome_1_1Vfs.html">Gnome::Vfs</a></td></tr> <tr><td colspan="2"><br><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">Glib::ustring </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGnome_1_1Vfs.html#55c1e2883b6dc40cb2f5af0c11731c3a">Gnome::Vfs::format_file_size_for_display</a> (FileSize size)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Formats the file size passed in <em>sizein</em> a way that is easy for the user to read. <a href="#55c1e2883b6dc40cb2f5af0c11731c3a"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">Glib::ustring </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGnome_1_1Vfs.html#e44f0604b15aebb45602e2ef9d885dad">Gnome::Vfs::escape_string</a> (const Glib::ustring &unescaped_string)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Escapes , replacing any and all special characters with equivalent escape sequences. <a href="#e44f0604b15aebb45602e2ef9d885dad"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">Glib::ustring </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGnome_1_1Vfs.html#98881499542ac4bc82fda362d2c35d35">Gnome::Vfs::escape_path_string</a> (const Glib::ustring &path)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Escapes , replacing only special characters that would not be found in paths (so '/', '&', '=', and '?' will not be escaped by this function). <a href="#98881499542ac4bc82fda362d2c35d35"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">Glib::ustring </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGnome_1_1Vfs.html#1a89ca226ab5b547bee54a69c2983b63">Gnome::Vfs::escape_host_and_path_string</a> (const Glib::ustring &path)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Escapes <em>path</em>, replacing only special characters that would not be found in paths or host name (so '/', '&', '=', ':', '@' and '?' will not be escaped by this function). <a href="#1a89ca226ab5b547bee54a69c2983b63"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">Glib::ustring </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGnome_1_1Vfs.html#dd0396d59f16dff6f416d34ad58fe2a2">Gnome::Vfs::escape_slashes</a> (const Glib::ustring &unescaped_string)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Escapes only '/' and '' characters in , replacing them with their escape sequence equivalents. <a href="#dd0396d59f16dff6f416d34ad58fe2a2"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">Glib::ustring </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGnome_1_1Vfs.html#95fa58a8551523a8bdb46856bb3a034a">Gnome::Vfs::unescape_string</a> (const Glib::ustring &escaped_string, const Glib::ustring &illegal_characters=Glib::ustring())</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Decodes escaped characters (i.e. <a href="#95fa58a8551523a8bdb46856bb3a034a"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">Glib::ustring </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGnome_1_1Vfs.html#31f3e94c30295906c414965420567f3e">Gnome::Vfs::unescape_string_for_display</a> (const Glib::ustring &escaped_string)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Similar to <a class="el" href="namespaceGnome_1_1Vfs.html#95fa58a8551523a8bdb46856bb3a034a" title="Decodes escaped characters (i.e.">unescape_string()</a>, but it returns something semi-intelligable to a user even upon receiving traumatic input such as 00 or URIs in bad form. <a href="#31f3e94c30295906c414965420567f3e"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">Glib::ustring </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGnome_1_1Vfs.html#fb0b1f2ddc9d0e3ef8aac84a3cb4ccb2">Gnome::Vfs::make_uri_canonical</a> (const Glib::ustring &uri)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">gnome_vfs_make_path_name_canonical: : a file path, relative or absolute <a href="#fb0b1f2ddc9d0e3ef8aac84a3cb4ccb2"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">Glib::ustring </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGnome_1_1Vfs.html#1ca6b2be79699486bf77a3ea296ce9e0">Gnome::Vfs::make_path_name_canonical</a> (const Glib::ustring &path)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">Glib::ustring </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGnome_1_1Vfs.html#fa5e0efd0c70eed75d866353059efe25">Gnome::Vfs::expand_initial_tilde</a> (const Glib::ustring &path)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">If <em>path</em> starts with a ~, representing the user's home directory, expand it to the actual path location. <a href="#fa5e0efd0c70eed75d866353059efe25"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">Glib::ustring </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGnome_1_1Vfs.html#92ec606549321a6bdacef83226439831">Gnome::Vfs::get_local_path_from_uri</a> (const Glib::ustring &uri)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Create a local path for a <a href="file:///">file:///</a> URI. <a href="#92ec606549321a6bdacef83226439831"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">Glib::ustring </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGnome_1_1Vfs.html#61570a7451880c56e8ca3d3d4e790b95">Gnome::Vfs::get_uri_from_local_path</a> (const Glib::ustring &local_full_path)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a <a href="file:///">file:///</a> URI for the local path . <a href="#61570a7451880c56e8ca3d3d4e790b95"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGnome_1_1Vfs.html#e86c117cc685be64a4900bf9efe7955e">Gnome::Vfs::is_executable_command_string</a> (const Glib::ustring &command_string)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Checks if <em>command_string</em> starts with the full path of an executable file or an executable in $PATH. <a href="#e86c117cc685be64a4900bf9efe7955e"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">Glib::ustring </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGnome_1_1Vfs.html#007d2b16c5271afd625b7f65c903d2a3">Gnome::Vfs::icon_path_from_filename</a> (const Glib::ustring &filename)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGnome_1_1Vfs.html#9daf5ccd8059e7505c2138de22130dfa">Gnome::Vfs::url_show</a> (const Glib::ustring &url) throw (exception)</td></tr> </table> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Sun Mar 9 14:42:04 2008 for libgnomevfsmm by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address> </body> </html>