diff options
author | lloyd <[email protected]> | 2011-06-17 16:54:16 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2011-06-17 16:54:16 +0000 |
commit | f799e57c35ff53136b0bbb7a40d44d7716db88a9 (patch) | |
tree | 4166a9694c990d667723088fcfe3fe63fef1dfd7 /src/utils/parsing.h | |
parent | 98fc1399dd3e61784a08c7da76ab729be6a93aff (diff) |
Add string_join; inverse of split_on.
Use auto in a few more places. Use GCC 4.6's range-for
Delete rather than hide Algorithm copy constructor/assignment
Move version to more or less randomly chosen 1.99 so there is no
ambiguity about versions.
Diffstat (limited to 'src/utils/parsing.h')
-rw-r--r-- | src/utils/parsing.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/utils/parsing.h b/src/utils/parsing.h index 98dcd82b5..2d53551bf 100644 --- a/src/utils/parsing.h +++ b/src/utils/parsing.h @@ -32,6 +32,15 @@ BOTAN_DLL std::vector<std::string> split_on( const std::string& str, char delim); /** +* Join a string +* @param strs strings to join +* @param delim the delimitor +* @return string joined by delim +*/ +BOTAN_DLL std::string string_join(const std::vector<std::string>& strs, + char delim); + +/** * Parse an ASN.1 OID * @param oid the OID in string form * @return OID components |