|
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.7 2006-03-20 09:54:22 dockes Exp $ (C) 2004 J.F.Dockes */
|
19 |
/* @(#$Id: pathut.h,v 1.8 2006-03-29 11:18:15 dockes Exp $ (C) 2004 J.F.Dockes */
|
20 |
|
20 |
|
21 |
#include <string>
|
21 |
#include <string>
|
22 |
#include <list>
|
22 |
#include <list>
|
23 |
|
23 |
|
24 |
/// Add a / at the end if none there yet.
|
24 |
/// Add a / at the end if none there yet.
|
|
... |
|
... |
38 |
/// Clean up path by removing duplicated / and resolving ../
|
38 |
/// Clean up path by removing duplicated / and resolving ../
|
39 |
extern std::string path_canon(const std::string &s);
|
39 |
extern std::string path_canon(const std::string &s);
|
40 |
/// Use glob(3) to return a list of file names matching pattern inside dir
|
40 |
/// Use glob(3) to return a list of file names matching pattern inside dir
|
41 |
extern std::list<std::string> path_dirglob(const std::string &dir,
|
41 |
extern std::list<std::string> path_dirglob(const std::string &dir,
|
42 |
const std::string pattern);
|
42 |
const std::string pattern);
|
|
|
43 |
/// Encode according to rfc 1738
|
|
|
44 |
extern std::string url_encode(const std::string url,
|
|
|
45 |
std::string::size_type offs);
|
|
|
46 |
|
43 |
#endif /* _PATHUT_H_INCLUDED_ */
|
47 |
#endif /* _PATHUT_H_INCLUDED_ */
|