From 61377c582e0f2675baa5f5e6e30a35d1a4164b33 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 1 May 2017 16:08:43 +0300 Subject: Add hxx extension for headers and lib prefix for library dir --- butl/base64 | 50 -------------------------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 butl/base64 (limited to 'butl/base64') diff --git a/butl/base64 b/butl/base64 deleted file mode 100644 index 1ba2fa1..0000000 --- a/butl/base64 +++ /dev/null @@ -1,50 +0,0 @@ -// file : butl/base64 -*- C++ -*- -// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd -// license : MIT; see accompanying LICENSE file - -#ifndef BUTL_BASE64 -#define BUTL_BASE64 - -#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_EXPORT void - base64_encode (std::ostream&, std::istream&); - - LIBBUTL_EXPORT std::string - base64_encode (std::istream&); - - LIBBUTL_EXPORT 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_EXPORT void - base64_decode (std::ostream&, std::istream&); - - LIBBUTL_EXPORT void - base64_decode (std::ostream&, const std::string&); - - LIBBUTL_EXPORT std::vector - base64_decode (const std::string&); -} - -#endif // BUTL_BASE64 -- cgit v1.1