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
zoom: create temp for contentProxy
[metaproxy-moved-to-github.git]
/
src
/
util.cpp
diff --git
a/src/util.cpp
b/src/util.cpp
index
27916ba
..
f792e02
100644
(file)
--- a/
src/util.cpp
+++ b/
src/util.cpp
@@
-24,6
+24,7
@@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include <yaz/otherinfo.h>
#include <yaz/querytowrbuf.h>
#include <yaz/oid_db.h>
#include <yaz/otherinfo.h>
#include <yaz/querytowrbuf.h>
#include <yaz/oid_db.h>
+#include <yaz/srw.h>
#include <iostream>
#include <iostream>
@@
-684,6
+685,14
@@
Z_ReferenceId **mp_util::get_referenceId(const Z_APDU *apdu)
return 0;
}
return 0;
}
+std::string mp_util::uri_encode(std::string s)
+{
+ char *x = (char *) xmalloc(1 + s.length() * 3);
+ yaz_encode_uri_component(x, s.c_str());
+ std::string result(x);
+ return result;
+}
+
/*
* Local variables:
/*
* Local variables: