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.11 2006-12-16 15:31:51 dockes Exp $  (C) 2004 J.F.Dockes */
19
/* @(#$Id: pathut.h,v 1.12 2007-02-06 14:16:43 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
...
...
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 
43
extern string path_tildexpand(const string &s);
43
extern string path_tildexpand(const string &s);
44
/// Use getcwd() to make absolute path if needed. Beware: ***this can fail***
45
/// we return an empty path in this case.
46
extern string path_absolute(const string &s);
44
/// Clean up path by removing duplicated / and resolving ../
47
/// Clean up path by removing duplicated / and resolving ../ + make it absolute
45
extern string path_canon(const string &s);
48
extern string path_canon(const string &s);
46
/// Use glob(3) to return a list of file names matching pattern inside dir
49
/// Use glob(3) to return a list of file names matching pattern inside dir
47
extern list<string> path_dirglob(const string &dir, 
50
extern list<string> path_dirglob(const string &dir, 
48
                       const string pattern);
51
                       const string pattern);
49
/// Encode according to rfc 1738
52
/// Encode according to rfc 1738