(file) Return to Base64.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/Base64.cpp between version 1.23 and 1.24

version 1.23, 2005/02/05 22:59:23 version 1.24, 2005/10/31 17:39:11
Line 118 
Line 118 
     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.
 */ */
 Array<char> Base64::encode(const Array<char>& vby)  Buffer Base64::encode(const Buffer& vby)
 { {
     Array<char> retArray;      Buffer retArray;
     // If nothing in input string, return empty string     // If nothing in input string, return empty string
     if (vby.size() == 0)     if (vby.size() == 0)
         return retArray;         return retArray;
Line 179 
Line 179 
 /*  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.
 */ */
 Array<char> Base64::decode(const Array<char>& strInput)  Buffer Base64::decode(const Buffer& strInput)
 { {
     //Strip any non-base64 characters from the input     //Strip any non-base64 characters from the input
     Array<char> str;      Buffer 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]))
             str.append(strInput[j]);             str.append(strInput[j]);
     }     }
  
     Array<char> retArray;      Buffer retArray;
  
     // Return if the input is zero length     // Return if the input is zero length
     if (str.size() == 0)     if (str.size() == 0)


Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2