diff options
author | B. Stack <bgstack15@gmail.com> | 2022-10-11 15:17:59 +0000 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2022-10-11 15:17:59 +0000 |
commit | 38c826621a39831d1bdc78aa9e45cc592db3e77f (patch) | |
tree | a49cfd729d9793681a57fa6f7409b0f0848e9ede /zen/base64.h | |
parent | Merge branch 'b11.25' into 'master' (diff) | |
parent | add upstream 11.26 (diff) | |
download | FreeFileSync-38c826621a39831d1bdc78aa9e45cc592db3e77f.tar.gz FreeFileSync-38c826621a39831d1bdc78aa9e45cc592db3e77f.tar.bz2 FreeFileSync-38c826621a39831d1bdc78aa9e45cc592db3e77f.zip |
Merge branch 'b11.26' into 'master'11.26
add upstream 11.26
See merge request opensource-tracking/FreeFileSync!49
Diffstat (limited to 'zen/base64.h')
-rw-r--r-- | zen/base64.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/zen/base64.h b/zen/base64.h index 48cf2230..cbef7c33 100644 --- a/zen/base64.h +++ b/zen/base64.h @@ -28,8 +28,8 @@ OutputIterator encodeBase64(InputIterator first, InputIterator last, OutputItera template <class InputIterator, class OutputIterator> OutputIterator decodeBase64(InputIterator first, InputIterator last, OutputIterator result); //nothrow! -std::string stringEncodeBase64(const std::string& str); -std::string stringDecodeBase64(const std::string& str); +std::string stringEncodeBase64(const std::string_view& str); +std::string stringDecodeBase64(const std::string_view& str); @@ -156,7 +156,7 @@ OutputIterator decodeBase64(InputIterator first, InputIterator last, OutputItera inline -std::string stringEncodeBase64(const std::string& str) +std::string stringEncodeBase64(const std::string_view& str) { std::string out; encodeBase64(str.begin(), str.end(), std::back_inserter(out)); @@ -165,7 +165,7 @@ std::string stringEncodeBase64(const std::string& str) inline -std::string stringDecodeBase64(const std::string& str) +std::string stringDecodeBase64(const std::string_view& str) { std::string out; decodeBase64(str.begin(), str.end(), std::back_inserter(out)); |