sl@0
|
1 |
#ifndef __UTILS_H__
|
sl@0
|
2 |
#define __UTILS_H__/*
|
sl@0
|
3 |
* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
4 |
* All rights reserved.
|
sl@0
|
5 |
* This component and the accompanying materials are made available
|
sl@0
|
6 |
* under the terms of the License "Eclipse Public License v1.0"
|
sl@0
|
7 |
* which accompanies this distribution, and is available
|
sl@0
|
8 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
9 |
*
|
sl@0
|
10 |
* Initial Contributors:
|
sl@0
|
11 |
* Nokia Corporation - initial contribution.
|
sl@0
|
12 |
*
|
sl@0
|
13 |
* Contributors:
|
sl@0
|
14 |
*
|
sl@0
|
15 |
* Description:
|
sl@0
|
16 |
*
|
sl@0
|
17 |
*/
|
sl@0
|
18 |
|
sl@0
|
19 |
|
sl@0
|
20 |
/**
|
sl@0
|
21 |
@file
|
sl@0
|
22 |
@internalComponent
|
sl@0
|
23 |
*/
|
sl@0
|
24 |
void OpenUtf8FStreamForRead(std::fstream &aFStream, const char *aUtf8FileName);
|
sl@0
|
25 |
void OpenUtf8FStreamForWrite(std::fstream &aFStream, const char *aUtf8FileName);
|
sl@0
|
26 |
|
sl@0
|
27 |
|
sl@0
|
28 |
#ifndef __LINUX__
|
sl@0
|
29 |
#include <windows.h>
|
sl@0
|
30 |
WCHAR *WindowsUtf8ToUtf16(const char *aUtf8);
|
sl@0
|
31 |
CHAR *WindowsUtf16ToUtf8(const WCHAR *aUtf16);
|
sl@0
|
32 |
WCHAR *WindowsRetrieveDosName(const WCHAR *aLongName);
|
sl@0
|
33 |
#endif
|
sl@0
|
34 |
|
sl@0
|
35 |
#endif
|