1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 03:06:38 +02:00

Moved some global functions to be member functions and misc cleanup

This commit is contained in:
Adam
2011-04-25 03:16:57 -04:00
parent 6922bd239c
commit 076ebafa1b
30 changed files with 229 additions and 306 deletions
+2 -2
View File
@@ -77,7 +77,7 @@ static const char Pad64 = '=';
characters followed by one "=" padding character.
*/
void b64_encode(const Anope::string &src, Anope::string &target)
void Anope::B64Encode(const Anope::string &src, Anope::string &target)
{
size_t src_pos = 0, src_len = src.length();
unsigned char input[3];
@@ -118,7 +118,7 @@ void b64_encode(const Anope::string &src, Anope::string &target)
src from base - 64 numbers into three 8 bit bytes in the target area.
*/
void b64_decode(const Anope::string &src, Anope::string &target)
void Anope::B64Decode(const Anope::string &src, Anope::string &target)
{
target.clear();