Batch #7654 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_04412 Base64Decode: logic confirmed by peer review Peer-reviewed-by: Yommy, secret Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
12 lines
525 B
C++
12 lines
525 B
C++
#ifndef RAGNAROK_SOURCE_UTILITY_TEXT_BASE64_H
|
|
#define RAGNAROK_SOURCE_UTILITY_TEXT_BASE64_H
|
|
|
|
#include <string>
|
|
|
|
std::string InsertLinebreaks(std::string text, unsigned int distance);
|
|
std::string DecodeBase64(std::string encoded, bool removeLinebreaks = false);
|
|
std::string Base64Decode(const std::string& encoded, bool removeLinebreaks = false);
|
|
std::string EncodeBase64(const std::string& input, bool urlSafe = false);
|
|
std::string EncodeBase64(const unsigned char* input, unsigned int length, bool urlSafe = false);
|
|
|
|
#endif
|