00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef INCL_STRINGUTILS_WIN
00020 #define INCL_STRINGUTILS_WIN
00021
00026 #include "base/fscapi.h"
00027 #include <string>
00028
00029
00030 #define ERR_ENCRYPT_DATA "Error occurred encrypting private data"
00031 #define ERR_DECRYPT_DATA "Error occurred decrypting private data"
00032
00033
00034 void toLowerCase (std::string& s);
00035 void toLowerCase (std::wstring& s);
00036 void replaceAll (const std::wstring& source, const std::wstring& dest, std::wstring& dataString, const int startPos = 0);
00037 int getElementContent(const std::wstring& xml, const std::wstring& tag, std::wstring& content, unsigned int pos = 0);
00038 int getElementContent(const std::wstring& xml, const std::wstring& tag, std::wstring& content, const std::wstring::size_type pos, std::wstring::size_type& start, std::wstring::size_type& end);
00039 char* encryptData (const char* data);
00040 char* decryptData (const char* b64Data);
00041
00042
00045 #endif