projects
/
metaproxy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New WRBUF wrapper mp::wrbuf
[metaproxy-moved-to-github.git]
/
include
/
metaproxy
/
util.hpp
diff --git
a/include/metaproxy/util.hpp
b/include/metaproxy/util.hpp
index
3da0caa
..
ea43910
100644
(file)
--- a/
include/metaproxy/util.hpp
+++ b/
include/metaproxy/util.hpp
@@
-1,5
+1,5
@@
/* This file is part of Metaproxy.
/* This file is part of Metaproxy.
- Copyright (C) 2005-2011 Index Data
+ Copyright (C) 2005-2012 Index Data
Metaproxy is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Metaproxy is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
@@
-124,6
+124,8
@@
namespace metaproxy_1 {
Odr_int &number_to_present,
const char **element_set_name);
Odr_int &number_to_present,
const char **element_set_name);
+ std::string uri_encode(std::string s);
+ std::string uri_decode(std::string s);
};
class odr : public boost::noncopyable {
};
class odr : public boost::noncopyable {
@@
-150,6
+152,18
@@
namespace metaproxy_1 {
ODR m_odr;
};
ODR m_odr;
};
+ class wrbuf : public boost::noncopyable
+ {
+ public:
+ wrbuf();
+ ~wrbuf();
+ operator WRBUF() const;
+ size_t len();
+ const char *buf();
+ private:
+ WRBUF m_wrbuf;
+ };
+
class PlainFile {
class Rep;
boost::scoped_ptr<Rep> m_p;
class PlainFile {
class Rep;
boost::scoped_ptr<Rep> m_p;