Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > 3e51fe12b8ba8995c218e071f1ad9ec1 > files > 429

gnome-vfsmm2.6-doc-2.26.0-14.mga7.armv7hl.rpm

<!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 Source File</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.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;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>
<h1>utils.h</h1><a href="utils_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- c++ -*-</span>
<a name="l00002"></a>00002 <span class="preprocessor">#ifndef _LIBGNOMEVFSMM_UTILS_H</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span><span class="preprocessor">#define _LIBGNOMEVFSMM_UTILS_H</span>
<a name="l00004"></a>00004 <span class="preprocessor"></span><span class="comment">/* $Id: utils.h 2019 2009-01-27 08:29:42Z murrayc $ */</span>
<a name="l00005"></a>00005 
<a name="l00006"></a>00006 <span class="comment">/* utils.h</span>
<a name="l00007"></a>00007 <span class="comment"> *</span>
<a name="l00008"></a>00008 <span class="comment"> * Copyright 2004      gnome-vfsmm development team.</span>
<a name="l00009"></a>00009 <span class="comment"> *</span>
<a name="l00010"></a>00010 <span class="comment"> * This library is free software; you can redistribute it and/or</span>
<a name="l00011"></a>00011 <span class="comment"> * modify it under the terms of the GNU Lesser General Public</span>
<a name="l00012"></a>00012 <span class="comment"> * License as published by the Free Software Foundation; either</span>
<a name="l00013"></a>00013 <span class="comment"> * version 2.1 of the License, or (at your option) any later version.</span>
<a name="l00014"></a>00014 <span class="comment"> *</span>
<a name="l00015"></a>00015 <span class="comment"> * This library is distributed in the hope that it will be useful,</span>
<a name="l00016"></a>00016 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00017"></a>00017 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00018"></a>00018 <span class="comment"> * Lesser General Public License for more details.</span>
<a name="l00019"></a>00019 <span class="comment"> *</span>
<a name="l00020"></a>00020 <span class="comment"> * You should have received a copy of the GNU Lesser General Public</span>
<a name="l00021"></a>00021 <span class="comment"> * License along with this library; if not, write to the Free</span>
<a name="l00022"></a>00022 <span class="comment"> * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.</span>
<a name="l00023"></a>00023 <span class="comment"> */</span>
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;<a class="code" href="types_8h.html">libgnomevfsmm/types.h</a>&gt;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;<a class="code" href="exception_8h.html">libgnomevfsmm/exception.h</a>&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;glibmm/ustring.h&gt;</span>
<a name="l00028"></a>00028 
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 <span class="keyword">namespace </span>Gnome
<a name="l00031"></a>00031 {
<a name="l00032"></a>00032 
<a name="l00033"></a>00033 <span class="keyword">namespace </span>Vfs
<a name="l00034"></a>00034 {
<a name="l00035"></a>00035 
<a name="l00043"></a>00043 Glib::ustring <a class="code" href="namespaceGnome_1_1Vfs.html#55c1e2883b6dc40cb2f5af0c11731c3a" title="Formats the file size passed in sizein a way that is easy for the user to read.">format_file_size_for_display</a>(<a class="code" href="namespaceGnome_1_1Vfs.html#46d71f215c684f228c1cd6b96145dbf3">FileSize</a>  size);
<a name="l00044"></a>00044 
<a name="l00050"></a>00050 Glib::ustring <a class="code" href="namespaceGnome_1_1Vfs.html#e44f0604b15aebb45602e2ef9d885dad" title="Escapes , replacing any and all special characters with equivalent escape sequences...">escape_string</a>(<span class="keyword">const</span> Glib::ustring&amp; unescaped_string);
<a name="l00051"></a>00051 
<a name="l00058"></a>00058 Glib::ustring <a class="code" href="namespaceGnome_1_1Vfs.html#98881499542ac4bc82fda362d2c35d35" title="Escapes , replacing only special characters that would not be found in paths (so...">escape_path_string</a>(<span class="keyword">const</span> Glib::ustring&amp; path);
<a name="l00059"></a>00059 
<a name="l00066"></a>00066 Glib::ustring <a class="code" href="namespaceGnome_1_1Vfs.html#1a89ca226ab5b547bee54a69c2983b63" title="Escapes path, replacing only special characters that would not be found in paths...">escape_host_and_path_string</a>(<span class="keyword">const</span> Glib::ustring&amp; path);
<a name="l00067"></a>00067 
<a name="l00074"></a>00074 Glib::ustring <a class="code" href="namespaceGnome_1_1Vfs.html#dd0396d59f16dff6f416d34ad58fe2a2" title="Escapes only &amp;#39;/&amp;#39; and &amp;#39;&amp;#39; characters in , replacing them with their...">escape_slashes</a>(<span class="keyword">const</span> Glib::ustring&amp; unescaped_string);
<a name="l00075"></a>00075 
<a name="l00086"></a>00086 Glib::ustring <a class="code" href="namespaceGnome_1_1Vfs.html#95fa58a8551523a8bdb46856bb3a034a" title="Decodes escaped characters (i.e.">unescape_string</a>(<span class="keyword">const</span> Glib::ustring&amp; escaped_string, <span class="keyword">const</span> Glib::ustring&amp; illegal_characters = Glib::ustring());
<a name="l00087"></a>00087 
<a name="l00102"></a>00102 Glib::ustring <a class="code" href="namespaceGnome_1_1Vfs.html#31f3e94c30295906c414965420567f3e" title="Similar to unescape_string(), but it returns something semi-intelligable to a user...">unescape_string_for_display</a>(<span class="keyword">const</span> Glib::ustring&amp; escaped_string);
<a name="l00103"></a>00103 
<a name="l00113"></a>00113 Glib::ustring <a class="code" href="namespaceGnome_1_1Vfs.html#fb0b1f2ddc9d0e3ef8aac84a3cb4ccb2" title="gnome_vfs_make_path_name_canonical: : a file path, relative or absolute">make_uri_canonical</a>(<span class="keyword">const</span> Glib::ustring&amp; uri);
<a name="l00114"></a>00114 
<a name="l00115"></a>00115 Glib::ustring <a class="code" href="namespaceGnome_1_1Vfs.html#1ca6b2be79699486bf77a3ea296ce9e0">make_path_name_canonical</a>(<span class="keyword">const</span> Glib::ustring&amp; path);
<a name="l00116"></a>00116 
<a name="l00124"></a>00124 Glib::ustring <a class="code" href="namespaceGnome_1_1Vfs.html#fa5e0efd0c70eed75d866353059efe25" title="If path starts with a ~, representing the user&amp;#39;s home directory, expand it to...">expand_initial_tilde</a>(<span class="keyword">const</span> Glib::ustring&amp; path);
<a name="l00125"></a>00125 
<a name="l00126"></a>00126 
<a name="l00134"></a>00134 Glib::ustring <a class="code" href="namespaceGnome_1_1Vfs.html#92ec606549321a6bdacef83226439831" title="Create a local path for a file:/// URI.">get_local_path_from_uri</a>(<span class="keyword">const</span> Glib::ustring&amp; uri);
<a name="l00135"></a>00135 
<a name="l00141"></a>00141 Glib::ustring <a class="code" href="namespaceGnome_1_1Vfs.html#61570a7451880c56e8ca3d3d4e790b95" title="Returns a file:/// URI for the local path .">get_uri_from_local_path</a>(<span class="keyword">const</span> Glib::ustring&amp; local_full_path);
<a name="l00142"></a>00142 
<a name="l00149"></a>00149 <span class="keywordtype">bool</span> <a class="code" href="namespaceGnome_1_1Vfs.html#e86c117cc685be64a4900bf9efe7955e" title="Checks if command_string starts with the full path of an executable file or an executable...">is_executable_command_string</a>(<span class="keyword">const</span> Glib::ustring&amp; command_string);
<a name="l00150"></a>00150 
<a name="l00151"></a>00151 Glib::ustring <a class="code" href="namespaceGnome_1_1Vfs.html#007d2b16c5271afd625b7f65c903d2a3">icon_path_from_filename</a>(<span class="keyword">const</span> Glib::ustring&amp; filename);
<a name="l00152"></a>00152 
<a name="l00153"></a>00153 <span class="preprocessor">#ifdef GLIBMM_EXCEPTIONS_ENABLED</span>
<a name="l00154"></a>00154 <span class="preprocessor"></span><span class="keywordtype">void</span> <a class="code" href="namespaceGnome_1_1Vfs.html#9daf5ccd8059e7505c2138de22130dfa">url_show</a> (<span class="keyword">const</span> Glib::ustring&amp; url) <span class="keywordflow">throw</span>(exception);
<a name="l00155"></a>00155 <span class="preprocessor">#else</span>
<a name="l00156"></a>00156 <span class="preprocessor"></span><span class="keywordtype">void</span> <a class="code" href="namespaceGnome_1_1Vfs.html#9daf5ccd8059e7505c2138de22130dfa">url_show</a> (<span class="keyword">const</span> Glib::ustring&amp; url, std::auto_ptr&lt;Gnome::Vfs::exception&gt;&amp; error);
<a name="l00157"></a>00157 <span class="preprocessor">#endif //GLIBMM_EXCEPTIONS_ENABLED</span>
<a name="l00158"></a>00158 <span class="preprocessor"></span>
<a name="l00159"></a>00159 <span class="comment">//TODO: Where does this envp come from? It seems to be an input parameter.</span>
<a name="l00160"></a>00160 <span class="comment">//void url_show (const Glib::ustring&amp; url, char** envp) throw(exception);</span>
<a name="l00161"></a>00161 
<a name="l00162"></a>00162 } <span class="comment">//namespace Vfs</span>
<a name="l00163"></a>00163 } <span class="comment">//namespace Gnome</span>
<a name="l00164"></a>00164 
<a name="l00165"></a>00165 <span class="preprocessor">#endif //_LIBGNOMEVFSMM_UTILS_H</span>
<a name="l00166"></a>00166 <span class="preprocessor"></span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Mar 16 18:27:50 2009 for libgnomevfsmm by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>