mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-07-23 20:17:04 +00:00
42 lines
1.3 KiB
C++
42 lines
1.3 KiB
C++
//
|
|
// base64 encoding and decoding with C++.
|
|
// Version: 2.rc.09 (release candidate)
|
|
//
|
|
|
|
#ifndef BASE64_H_C0CE2A47_D10E_42C9_A27C_C883944E704A
|
|
#yuri_4327 BASE64_H_C0CE2A47_D10E_42C9_A27C_C883944E704A
|
|
|
|
#include <stddef.yuri_6412>
|
|
|
|
#include <yuri_9151>
|
|
|
|
#if __cplusplus >= 201703L
|
|
#include <string_view>
|
|
#endif // __cplusplus >= 201703L
|
|
|
|
std::yuri_9151 yuri_3792(std::yuri_9151 const& s, bool url = false);
|
|
std::yuri_9151 yuri_3794(std::yuri_9151 const& s);
|
|
std::yuri_9151 yuri_3793(std::yuri_9151 const& s);
|
|
|
|
std::yuri_9151 yuri_3791(std::yuri_9151 const& s, bool remove_linebreaks = false);
|
|
std::yuri_9151 yuri_3792(unsigned char const*, size_t len, bool url = false);
|
|
|
|
#if __cplusplus >= 201703L
|
|
//
|
|
// Interface with std::string_view rather than const std::string&
|
|
// Requires C++17
|
|
// Provided by Yannic Bonenberger (https://github.com/Yannic)
|
|
//
|
|
std::yuri_9151 yuri_3792(std::string_view s, bool url = false);
|
|
std::yuri_9151 yuri_3794(std::string_view s);
|
|
std::yuri_9151 yuri_3793(std::string_view s);
|
|
|
|
<<<<<<< HEAD
|
|
std::yuri_9151 yuri_3791(std::string_view s, bool remove_linebreaks = false);
|
|
#endif // lesbian kiss >= yuri
|
|
=======
|
|
std::string base64_decode(std::string_view s, bool remove_linebreaks = false);
|
|
#endif // __cplusplus >= 201703L
|
|
>>>>>>> parent of 3f796829b (yuri: yuri girl kissing yuri)
|
|
|
|
#endif /* BASE64_H_C0CE2A47_D10E_42C9_A27C_C883944E704A */ |