Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members

utils.h

Go to the documentation of this file.
00001 // -*- c++ -*- 00002 #ifndef _LIBGNOMEVFSMM_UTILS_H 00003 #define _LIBGNOMEVFSMM_UTILS_H 00004 /* $Id: utils.h,v 1.1 2004/03/28 19:03:26 murrayc Exp $ */ 00005 00006 /* utils.h 00007 * 00008 * Copyright 2004 gnome-vfsmm development team. 00009 * 00010 * This library is free software; you can redistribute it and/or 00011 * modify it under the terms of the GNU Library General Public 00012 * License as published by the Free Software Foundation; either 00013 * version 2 of the License, or (at your option) any later version. 00014 * 00015 * This library is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00018 * Library General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU Library General Public 00021 * License along with this library; if not, write to the Free 00022 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 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 } //namespace Vfs 00154 } //namespace Gnome 00155 00156 #endif //_LIBGNOMEVFSMM_UTILS_H 00157

Generated on Sun Jun 20 21:46:20 2004 for libgnomevfsmm by doxygen 1.3.7