LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
base64.h
Go to the documentation of this file.
1// Copyright 2002-2013 CEA LIST
2// SPDX-FileCopyrightText: 2022 CEA LIST <gael.de-chalendar@cea.fr>
3//
4// SPDX-License-Identifier: MIT
5
6/*
7 base64.cpp and base64.h
8
9 Copyright (C) 2004-2008 René Nyffenegger
10
11 This source code is provided 'as-is', without any express or implied
12 warranty. In no event will the author be held liable for any damages
13 arising from the use of this software.
14
15 Permission is granted to anyone to use this software for any purpose,
16 including commercial applications, and to alter it and redistribute it
17 freely, subject to the following restrictions:
18
19 1. The origin of this source code must not be misrepresented; you must not
20 claim that you wrote the original source code. If you use this source code
21 in a product, an acknowledgment in the product documentation would be
22 appreciated but is not required.
23
24 2. Altered source versions must be plainly marked as such, and must not be
25 misrepresented as being the original source code.
26
27 3. This notice may not be removed or altered from any source distribution.
28
29 René Nyffenegger rene.nyffenegger@adp-gmbh.ch
30
31*/
32
33/***************************************************************************
34 * Copyright (C) 2008-2012 by CEA LIST *
35 * Changes by G. de Chalendar to handle strings directly *
36 ***************************************************************************/
37#include <string>
38
39#include "common/LimaCommon.h"
40
41LIMA_DATA_EXPORT std::string base64_encode(const std::string& s);
42LIMA_DATA_EXPORT std::string base64_decode(std::string const& s);
#define LIMA_DATA_EXPORT
Definition LimaCommon.h:128
LIMA_DATA_EXPORT std::string base64_decode(std::string const &s)
Definition base64.cpp:96
LIMA_DATA_EXPORT std::string base64_encode(const std::string &s)
Definition base64.cpp:50