|
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.13 2007-06-08 15:30:01 dockes Exp $ (C) 2004 J.F.Dockes */
|
19 |
/* @(#$Id: pathut.h,v 1.14 2008-07-01 08:26:08 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 |
|
|
... |
|
... |
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);
|
|
|
55 |
extern bool printableUrl(const string &fcharset,
|
|
|
56 |
const string &in, string &out);
|
|
|
57 |
|
55 |
/// Stat parameter and check if it's a directory
|
58 |
/// Stat parameter and check if it's a directory
|
56 |
extern bool path_isdir(const string& path);
|
59 |
extern bool path_isdir(const string& path);
|
57 |
|
60 |
|
58 |
/** A small wrapper around statfs et al, to return percentage of disk
|
61 |
/** A small wrapper around statfs et al, to return percentage of disk
|
59 |
occupation */
|
62 |
occupation */
|