Switch to unified view

a/src/utils/pathut.h b/src/utils/pathut.h
...
...
14
 *   Free Software Foundation, Inc.,
14
 *   Free Software Foundation, Inc.,
15
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
15
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
16
 */
16
 */
17
#ifndef _PATHUT_H_INCLUDED_
17
#ifndef _PATHUT_H_INCLUDED_
18
#define _PATHUT_H_INCLUDED_
18
#define _PATHUT_H_INCLUDED_
19
/* @(#$Id: pathut.h,v 1.14 2008-07-01 08:26:08 dockes Exp $  (C) 2004 J.F.Dockes */
19
/* @(#$Id: pathut.h,v 1.15 2008-07-01 11:51:51 dockes Exp $  (C) 2004 J.F.Dockes */
20
20
21
#include <string>
21
#include <string>
22
#include <list>
22
#include <list>
23
#include "refcntr.h"
23
#include "refcntr.h"
24
24
...
...
32
/// Concatenate 2 paths
32
/// Concatenate 2 paths
33
extern string path_cat(const string &s1, const string &s2);
33
extern string path_cat(const string &s1, const string &s2);
34
/// Get the simple file name (get rid of any directory path prefix
34
/// Get the simple file name (get rid of any directory path prefix
35
extern string path_getsimple(const string &s);
35
extern string path_getsimple(const string &s);
36
/// Simple file name + optional suffix stripping
36
/// Simple file name + optional suffix stripping
37
extern string path_basename(const string &s, const string &suff="");
37
extern string path_basename(const string &s, const string &suff=string());
38
/// Get the father directory
38
/// Get the father directory
39
extern string path_getfather(const string &s);
39
extern string path_getfather(const string &s);
40
/// Get the current user's home directory
40
/// Get the current user's home directory
41
extern string path_home();
41
extern string path_home();
42
/// Expand ~ at the beginning of string 
42
/// Expand ~ at the beginning of string