summaryrefslogtreecommitdiff
path: root/utils/stringlib.h
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2011-09-17 00:20:52 +0100
committerChris Dyer <cdyer@cs.cmu.edu>2011-09-17 00:20:52 +0100
commitb70a0be1c34bd177e8ac7c53cb466f226008cc52 (patch)
tree5180833eb54e8cae6a544b6ba9fb658dd008f06e /utils/stringlib.h
parentb7bff725993ba7ffc960a46db9b75fc570671ab5 (diff)
add md5 hash function
Diffstat (limited to 'utils/stringlib.h')
-rw-r--r--utils/stringlib.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/stringlib.h b/utils/stringlib.h
index 8022bb88..cafbdac3 100644
--- a/utils/stringlib.h
+++ b/utils/stringlib.h
@@ -249,6 +249,7 @@ inline void SplitCommandAndParam(const std::string& in, std::string* cmd, std::s
}
void ProcessAndStripSGML(std::string* line, std::map<std::string, std::string>* out);
+std::string SGMLOpenSegTag(const std::map<std::string, std::string>& attr);
// given the first character of a UTF8 block, find out how wide it is
// see http://en.wikipedia.org/wiki/UTF-8 for more info
@@ -260,4 +261,6 @@ inline unsigned int UTF8Len(unsigned char x) {
else return 0;
}
+std::string md5(const std::string& in);
+
#endif