equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * Util - Common utility functions. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 /** |
|
21 @file |
|
22 @released |
|
23 @internalTechnology |
|
24 */ |
|
25 |
|
26 #ifndef UTIL_H |
|
27 #define UTIL_H |
|
28 |
|
29 #include "toolsconf.h" |
|
30 #include <string> |
|
31 #include "symbiantypes.h" |
|
32 |
|
33 namespace Util |
|
34 { |
|
35 DllExport std::string wstring2string (const std::wstring& aWide); |
|
36 std::wstring string2wstring (const std::string& aNarrow); |
|
37 std::wstring string2wstring (const char* aNarrow); |
|
38 DllExport int WideCharToInteger(const wchar_t* aWideChar); |
|
39 DllExport const std::wstring IntegerToWideString(int aInt); |
|
40 TInt64 WideCharToInt64(const wchar_t* aWideChar); |
|
41 std::string Base64Encode( const std::string& aData ); |
|
42 std::string Base64Decode( const std::string& aEncodedData ); |
|
43 TUint32 Crc32(const void* aPtr, TInt aLength); |
|
44 }; |
|
45 |
|
46 |
|
47 #endif // UTIL_H |