From c09cd7512491cee1e82c1ad8128ce9fd4bc3f79b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 22 Sep 2017 23:32:28 +0200 Subject: Initial modularization with both Clang and VC hacks Note: gave up on VC about half way though. --- libbutl/base64.hxx | 50 -------------------------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 libbutl/base64.hxx (limited to 'libbutl/base64.hxx') diff --git a/libbutl/base64.hxx b/libbutl/base64.hxx deleted file mode 100644 index 748dcfa..0000000 --- a/libbutl/base64.hxx +++ /dev/null @@ -1,50 +0,0 @@ -// file : libbutl/base64.hxx -*- C++ -*- -// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd -// license : MIT; see accompanying LICENSE file - -#ifndef LIBBUTL_BASE64_HXX -#define LIBBUTL_BASE64_HXX - -#include -#include -#include - -#include - -namespace butl -{ - // Base64-encode a stream or a buffer. Split the output into 76 char-long - // lines (new line is the 77th). If reading from a stream, check if it has - // badbit, failbit, or eofbit set and throw invalid_argument if that's the - // case. Otherwise, set eofbit on completion. If writing to a stream, check - // if it has badbit, failbit, or eofbit set and throw invalid_argument if - // that's the case. Otherwise set badbit if the write operation fails. - // - LIBBUTL_SYMEXPORT void - base64_encode (std::ostream&, std::istream&); - - LIBBUTL_SYMEXPORT std::string - base64_encode (std::istream&); - - LIBBUTL_SYMEXPORT std::string - base64_encode (const std::vector&); - - // Base64-decode a stream or a string. Throw invalid_argument if the input - // is not a valid base64 representation. If reading from a stream, check if - // it has badbit, failbit, or eofbit set and throw invalid_argument if - // that's the case. Otherwise, set eofbit on completion. If writing to a - // stream, check if it has badbit, failbit, or eofbit set and throw - // invalid_argument if that's the case. Otherwise set badbit if the write - // operation fails. - // - LIBBUTL_SYMEXPORT void - base64_decode (std::ostream&, std::istream&); - - LIBBUTL_SYMEXPORT void - base64_decode (std::ostream&, const std::string&); - - LIBBUTL_SYMEXPORT std::vector - base64_decode (const std::string&); -} - -#endif // LIBBUTL_BASE64_HXX -- cgit v1.1