0
|
1 |
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of the License "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
//
|
|
15 |
|
|
16 |
#include <e32std.h>
|
|
17 |
#include <e32def.h>
|
|
18 |
#include "convdatastruct.h"
|
|
19 |
|
|
20 |
|
|
21 |
class UnicodeConv
|
|
22 |
{
|
|
23 |
public:
|
|
24 |
IMPORT_C static void ConvertFromUnicodeL(TDes8& aForeign, const TDesC16& aUnicode);
|
|
25 |
IMPORT_C static void ConvertToUnicodeL(TDes16& aUnicode, const TDesC8& aForeign);
|
|
26 |
IMPORT_C static TBool IsLegalShortNameCharacter (TUint aCharacter);
|
|
27 |
IMPORT_C static TInt ConvertFromUnicodeL(TDes8& aForeign, const TDesC16& aUnicode, TBool leaveWhenOverflow /*when overflow, ETrue: leave; EFalse: truncate*/);
|
|
28 |
IMPORT_C static TInt ConvertToUnicodeL(TDes16& aUnicode, const TDesC8& aForeign, TBool leaveWhenOverflow /*when overflow, ETrue: leave; EFalse: truncate*/);
|
|
29 |
};
|
|
30 |
|