|
a/upmpd/upmpdutils.hxx |
|
b/upmpd/upmpdutils.hxx |
|
... |
|
... |
29 |
|
29 |
|
30 |
extern void path_catslash(std::string &s);
|
30 |
extern void path_catslash(std::string &s);
|
31 |
extern std::string path_cat(const std::string &s1, const std::string &s2);
|
31 |
extern std::string path_cat(const std::string &s1, const std::string &s2);
|
32 |
extern void trimstring(string &s, const char *ws = " \t");
|
32 |
extern void trimstring(string &s, const char *ws = " \t");
|
33 |
extern string path_tildexpand(const string &s);
|
33 |
extern string path_tildexpand(const string &s);
|
|
|
34 |
extern void stringToTokens(const string &s, vector<string> &tokens,
|
|
|
35 |
const string &delims = " \t", bool skipinit=true);
|
34 |
|
36 |
|
35 |
|
37 |
|
36 |
// Escape XML special chars.
|
38 |
// Escape XML special chars.
|
37 |
extern std::string xmlquote(const std::string& in);
|
39 |
extern std::string xmlquote(const std::string& in);
|
38 |
|
40 |
|
|
... |
|
... |
52 |
extern const std::string& mapget(
|
54 |
extern const std::string& mapget(
|
53 |
const std::unordered_map<std::string, std::string>& im,
|
55 |
const std::unordered_map<std::string, std::string>& im,
|
54 |
const std::string& k);
|
56 |
const std::string& k);
|
55 |
|
57 |
|
56 |
// Format a didl fragment from MPD status data
|
58 |
// Format a didl fragment from MPD status data
|
57 |
class MpdStatus;
|
59 |
class UpSong;
|
58 |
extern std::string didlmake(const MpdStatus& mpds, bool next = false);
|
60 |
extern std::string didlmake(const UpSong& song);
|
59 |
|
61 |
|
60 |
// Replace the first occurrence of regexp. cxx11 regex does not work
|
62 |
// Replace the first occurrence of regexp. cxx11 regex does not work
|
61 |
// that well yet...
|
63 |
// that well yet...
|
62 |
extern std::string regsub1(const std::string& sexp, const std::string& input,
|
64 |
extern std::string regsub1(const std::string& sexp, const std::string& input,
|
63 |
const std::string& repl);
|
65 |
const std::string& repl);
|