|
a/src/utils/pathut.h |
|
b/src/utils/pathut.h |
|
... |
|
... |
48 |
extern string path_canon(const string &s);
|
48 |
extern string path_canon(const string &s);
|
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 = 0);
|
54 |
string::size_type offs = 0);
|
|
|
55 |
/// Transcode to utf-8 if possible or url encoding, for display.
|
55 |
extern bool printableUrl(const string &fcharset,
|
56 |
extern bool printableUrl(const string &fcharset,
|
56 |
const string &in, string &out);
|
57 |
const string &in, string &out);
|
|
|
58 |
|
|
|
59 |
/// Return the host+path part of an url. This is not a general
|
|
|
60 |
/// routine, it does the right thing only in the recoll context
|
|
|
61 |
extern string url_gpath(const string& url);
|
57 |
|
62 |
|
58 |
/// Stat parameter and check if it's a directory
|
63 |
/// Stat parameter and check if it's a directory
|
59 |
extern bool path_isdir(const string& path);
|
64 |
extern bool path_isdir(const string& path);
|
60 |
|
65 |
|
61 |
/** A small wrapper around statfs et al, to return percentage of disk
|
66 |
/** A small wrapper around statfs et al, to return percentage of disk
|