version 1.3, 2002/02/07 18:57:42
|
version 1.4, 2002/02/07 20:02:02
|
|
|
implementation and could be improved if it is required for | implementation and could be improved if it is required for |
production. Today it is only for test programs. | production. Today it is only for test programs. |
*/ | */ |
inline Array<Sint8> Base64::encode(const Array<Uint8>& vby) |
Array<Sint8> Base64::encode(const Array<Uint8>& vby) |
{ | { |
Array<Sint8> retArray; | Array<Sint8> retArray; |
// If nothing in input string, return empty string | // If nothing in input string, return empty string |
|
|
/* The decode static method takes a base-64 stream and converts it | /* The decode static method takes a base-64 stream and converts it |
to an array of 8-bit values. | to an array of 8-bit values. |
*/ | */ |
inline Array<Uint8> Base64::decode(const Array<Sint8> strInput) |
Array<Uint8> Base64::decode(const Array<Sint8> strInput) |
{ | { |
//Strip any non-base64 characters from the input | //Strip any non-base64 characters from the input |
PEGASUS_STD(string) str; | PEGASUS_STD(string) str; |