diff options
Diffstat (limited to 'src/utils/parsing.h')
-rw-r--r-- | src/utils/parsing.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/utils/parsing.h b/src/utils/parsing.h index 2d53551bf..12a31a7dd 100644 --- a/src/utils/parsing.h +++ b/src/utils/parsing.h @@ -32,6 +32,16 @@ BOTAN_DLL std::vector<std::string> split_on( const std::string& str, char delim); /** +* Replace a character in a string +* @param str the input string +* @param from_char the character to replace +* @return to_char the character to replace it with +*/ +BOTAN_DLL std::string replace_char(const std::string& str, + char from_char, + char to_char); + +/** * Join a string * @param strs strings to join * @param delim the delimitor |