javacommons/utils/inc/javacommonutils.h
changeset 48 e0d6e9bd3ca7
parent 21 2a9601315dfc
child 57 59b3b4473dc8
equal deleted inserted replaced
47:f40128debb5d 48:e0d6e9bd3ca7
    85      * @return base64 encoded string.
    85      * @return base64 encoded string.
    86      */
    86      */
    87     OS_IMPORT static std::string base64encode(const std::string& aData);
    87     OS_IMPORT static std::string base64encode(const std::string& aData);
    88 
    88 
    89     /**
    89     /**
       
    90      * Encode wstring to base64 wstring byte by byte.
       
    91      *
       
    92      * wstring aData is base64 encoded as a byte array.
       
    93      * If the wstring has been created from TDesC16 in Symbian it contains
       
    94      * UTF-16LE (UCS-2) encoded 16-bit characters.
       
    95      * The result is byte array that contains 8-bit ASCII characters.
       
    96      * Each of these 8-bit character is converted to the corresponding
       
    97      * wchar and appended to the result wstring.
       
    98      *
       
    99      * @see \sf\app\jrt\javamanager\javainstaller\installer\javasrc\com\nokia
       
   100      *  \mj\impl\installer\utils\Args.java, decodeBase64Args()
       
   101      * @param aData wstring containing the data to be encoded.
       
   102      * @return base64 encoded result wstring.
       
   103      */
       
   104     OS_IMPORT static std::wstring wbase64encode(const std::wstring& aData);
       
   105 
       
   106     /**
    90      * Decode base64 string.
   107      * Decode base64 string.
    91      *
   108      *
    92      * @param aData base64 encoded string.
   109      * @param aData base64 encoded string.
    93      * @return decoded string.
   110      * @return decoded string.
    94      */
   111      */