version 1.2, 2002/02/07 15:21:57
|
version 1.3, 2002/02/07 18:57:42
|
|
|
#include "Base64.h" | #include "Base64.h" |
#include <cassert> | #include <cassert> |
#include <strstream> | #include <strstream> |
|
#include <string> |
#include <Pegasus/Common/String.h> | #include <Pegasus/Common/String.h> |
#include <Pegasus/Common/Base64.h> | #include <Pegasus/Common/Base64.h> |
#include <Pegasus/Common/Array.h> | #include <Pegasus/Common/Array.h> |
|
|
inline Array<Uint8> Base64::decode(const Array<Sint8> strInput) | inline Array<Uint8> Base64::decode(const Array<Sint8> strInput) |
{ | { |
//Strip any non-base64 characters from the input | //Strip any non-base64 characters from the input |
std::string str; |
PEGASUS_STD(string) str; |
for (Uint32 j=0;j<strInput.size();j++) | for (Uint32 j=0;j<strInput.size();j++) |
{ | { |
if (_IsBase64(strInput[j])) | if (_IsBase64(strInput[j])) |