equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 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 #include <stdio.h> |
|
19 #include<e32std.h> |
|
20 #include "libutils.h" |
|
21 #include"std_log_result.h" |
|
22 #define LOG_FILENAME_LINE __FILE__, __LINE__ |
|
23 void main() |
|
24 { |
|
25 __UHEAP_MARK; |
|
26 { |
|
27 wchar_t* mycharstring = L"hellohello"; |
|
28 int retval[10]; |
|
29 RBuf8 buf; |
|
30 retval[1]= WcharToRbuf8(mycharstring,buf); |
|
31 |
|
32 wstring str; |
|
33 retval[2]= Rbuf8ToWstring(buf,str); |
|
34 |
|
35 TBuf8 <30> tbuf; |
|
36 retval[3]= WstringToTbuf8(str,tbuf); |
|
37 |
|
38 wchar_t* myfinalstring= new wchar_t[35]; |
|
39 int size=35; |
|
40 retval[4]= Tbuf8ToWchar(tbuf,myfinalstring,size); |
|
41 |
|
42 if(!wcscmp(mycharstring,myfinalstring)) |
|
43 { |
|
44 printf("\nintegration_test_scenario18 case passed"); |
|
45 } |
|
46 else |
|
47 { |
|
48 printf("\nintegration_test_scenario18 case failed"); |
|
49 assert_failed = true; |
|
50 } |
|
51 buf.Close(); |
|
52 delete[] myfinalstring; |
|
53 } |
|
54 __UHEAP_MARKEND; |
|
55 testResultXml("integration_test_scenario18"); |
|
56 } |