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.15 2008-07-01 11:51:51 dockes Exp $  (C) 2004 J.F.Dockes */
19
/* @(#$Id: pathut.h,v 1.16 2008-12-04 11:49:59 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
...
...
49
/// 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
50
extern list<string> path_dirglob(const string &dir, 
50
extern list<string> path_dirglob(const string &dir, 
51
                       const string pattern);
51
                       const string pattern);
52
/// Encode according to rfc 1738
52
/// Encode according to rfc 1738
53
extern string url_encode(const string url, 
53
extern string url_encode(const string url, 
54
                  string::size_type offs);
54
                  string::size_type offs = 0);
55
extern bool printableUrl(const string &fcharset, 
55
extern bool printableUrl(const string &fcharset, 
56
             const string &in, string &out);
56
             const string &in, string &out);
57
57
58
/// Stat parameter and check if it's a directory
58
/// Stat parameter and check if it's a directory
59
extern bool path_isdir(const string& path);
59
extern bool path_isdir(const string& path);