diff options
author | pescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7> | 2011-10-10 01:39:18 +0000 |
---|---|---|
committer | pescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7> | 2011-10-10 01:39:18 +0000 |
commit | e9bf8a6e2d782dc480fb97cb59928c8cfe1dd777 (patch) | |
tree | 12bb8ebaab13ef1476ce9343482796c901ee0130 /Plugins/jingle/libjingle/talk/base/base64.h | |
parent | f574681d9b6fee0d05319af1831620e48cc8492f (diff) |
Moved files from BerliOS
git-svn-id: http://pescuma.googlecode.com/svn/trunk/Miranda@229 c086bb3d-8645-0410-b8da-73a8550f86e7
Diffstat (limited to 'Plugins/jingle/libjingle/talk/base/base64.h')
-rw-r--r-- | Plugins/jingle/libjingle/talk/base/base64.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Plugins/jingle/libjingle/talk/base/base64.h b/Plugins/jingle/libjingle/talk/base/base64.h new file mode 100644 index 0000000..2b58761 --- /dev/null +++ b/Plugins/jingle/libjingle/talk/base/base64.h @@ -0,0 +1,32 @@ + +//********************************************************************* +//* C_Base64 - a simple base64 encoder and decoder. +//* +//* Copyright (c) 1999, Bob Withers - bwit@pobox.com +//* +//* This code may be freely used for any purpose, either personal +//* or commercial, provided the authors copyright notice remains +//* intact. +//********************************************************************* + +#ifndef TALK_BASE_BASE64_H__ +#define TALK_BASE_BASE64_H__ + +#include <string> + +namespace talk_base { + +class Base64 +{ +public: + static std::string encode(const std::string & data); + static std::string decode(const std::string & data); + static std::string encodeFromArray(const char * data, size_t len); +private: + static const std::string Base64::Base64Table; + static const std::string::size_type Base64::DecodeTable[]; +}; + +} // namespace talk_base + +#endif // TALK_BASE_BASE64_H__ |