equal
deleted
inserted
replaced
1 /* |
|
2 * Copyright (c) 2005-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 "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 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <e32std.h> |
|
20 #include <e32def.h> |
|
21 #include "convdatastruct.h" |
|
22 |
|
23 |
|
24 class UnicodeConv |
|
25 { |
|
26 public: |
|
27 IMPORT_C static void ConvertFromUnicodeL(TDes8& aForeign, const TDesC16& aUnicode); |
|
28 IMPORT_C static void ConvertToUnicodeL(TDes16& aUnicode, const TDesC8& aForeign); |
|
29 IMPORT_C static TBool IsLegalShortNameCharacter (TUint aCharacter); |
|
30 IMPORT_C static TInt ConvertFromUnicodeL(TDes8& aForeign, const TDesC16& aUnicode, TBool leaveWhenOverflow /*when overflow, ETrue: leave; EFalse: truncate*/); |
|
31 IMPORT_C static TInt ConvertToUnicodeL(TDes16& aUnicode, const TDesC8& aForeign, TBool leaveWhenOverflow /*when overflow, ETrue: leave; EFalse: truncate*/); |
|
32 }; |
|
33 |
|