|
a/src/utils/pathut.h |
|
b/src/utils/pathut.h |
1 |
#ifndef _PATHUT_H_INCLUDED_
|
1 |
#ifndef _PATHUT_H_INCLUDED_
|
2 |
#define _PATHUT_H_INCLUDED_
|
2 |
#define _PATHUT_H_INCLUDED_
|
3 |
/* @(#$Id: pathut.h,v 1.4 2005-12-13 12:42:59 dockes Exp $ (C) 2004 J.F.Dockes */
|
3 |
/* @(#$Id: pathut.h,v 1.5 2006-01-09 16:53:31 dockes Exp $ (C) 2004 J.F.Dockes */
|
4 |
|
4 |
|
5 |
#include <string>
|
5 |
#include <string>
|
|
|
6 |
#include <list>
|
6 |
|
7 |
|
7 |
extern void path_catslash(std::string &s);
|
8 |
extern void path_catslash(std::string &s);
|
8 |
extern std::string path_cat(const std::string &s1, const std::string &s2);
|
9 |
extern std::string path_cat(const std::string &s1, const std::string &s2);
|
9 |
extern std::string path_getsimple(const std::string &s);
|
10 |
extern std::string path_getsimple(const std::string &s);
|
|
|
11 |
extern std::string path_basename(const std::string &s, const std::string &suff="");
|
10 |
extern std::string path_getfather(const std::string &s);
|
12 |
extern std::string path_getfather(const std::string &s);
|
11 |
extern std::string path_home();
|
13 |
extern std::string path_home();
|
12 |
extern std::string path_tildexpand(const std::string &s);
|
14 |
extern std::string path_tildexpand(const std::string &s);
|
13 |
|
15 |
|
|
|
16 |
extern std::string path_canon(const std::string &s);
|
|
|
17 |
extern std::list<std::string> path_dirglob(const std::string &dir,
|
|
|
18 |
const std::string pattern);
|
14 |
#endif /* _PATHUT_H_INCLUDED_ */
|
19 |
#endif /* _PATHUT_H_INCLUDED_ */
|