aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/parsing.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2014-02-13 12:51:15 +0000
committerlloyd <[email protected]>2014-02-13 12:51:15 +0000
commitc548b437e6004328830f8b4f55ac922951ebdf3d (patch)
tree34c38a02a4a78cc1e4189cb8cdea07d7d9c6b17b /src/lib/utils/parsing.h
parentf4413f88f535ade0257ef1ea914c2df44cdb51f2 (diff)
Remove dependency on boost string algos
Diffstat (limited to 'src/lib/utils/parsing.h')
-rw-r--r--src/lib/utils/parsing.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/utils/parsing.h b/src/lib/utils/parsing.h
index b37e3cb62..f2642ff95 100644
--- a/src/lib/utils/parsing.h
+++ b/src/lib/utils/parsing.h
@@ -37,6 +37,14 @@ BOTAN_DLL std::vector<std::string> split_on(
const std::string& str, char delim);
/**
+* Split a string on a character predicate
+* @param str the input string
+*/
+BOTAN_DLL std::vector<std::string>
+split_on_pred(const std::string& str,
+ std::function<bool (char)> pred);
+
+/**
* Erase characters from a string
*/
BOTAN_DLL std::string erase_chars(const std::string& str, const std::set<char>& chars);