equal
deleted
inserted
replaced
18 #include <stdio.h> |
18 #include <stdio.h> |
19 #include<e32std.h> |
19 #include<e32std.h> |
20 #include "libutils.h" |
20 #include "libutils.h" |
21 #include"std_log_result.h" |
21 #include"std_log_result.h" |
22 #define LOG_FILENAME_LINE __FILE__, __LINE__ |
22 #define LOG_FILENAME_LINE __FILE__, __LINE__ |
23 void main() |
23 int main() |
24 { |
24 { |
25 __UHEAP_MARK; |
25 __UHEAP_MARK; |
26 { |
26 { |
27 _LIT(myTlitc,"hellohello"); |
27 _LIT(myTlitc,"hellohello"); |
28 wchar_t* myWchar = new wchar_t[30]; |
28 wchar_t* myWchar = new wchar_t[30]; |
40 retval[3]= WstringToTbuf16(str,tbuf); |
40 retval[3]= WstringToTbuf16(str,tbuf); |
41 |
41 |
42 wchar_t* myfinalstring= new wchar_t[15]; |
42 wchar_t* myfinalstring= new wchar_t[15]; |
43 int size_new=15; |
43 int size_new=15; |
44 retval[4]= Tbuf16ToWchar(tbuf,myfinalstring,size_new); |
44 retval[4]= Tbuf16ToWchar(tbuf,myfinalstring,size_new); |
|
45 |
|
46 for(int i=1; i<=4; i++) |
|
47 { |
|
48 if (retval[i]!= 0) |
|
49 printf("Conversion failed for retval\n",retval[i]); |
|
50 } |
45 |
51 |
46 if(!wcscmp(myWchar,myfinalstring)) |
52 if(!wcscmp(myWchar,myfinalstring)) |
47 { |
53 { |
48 printf("\n\n\nintegration_test_scenario27 success"); |
54 printf("\n\n\nintegration_test_scenario27 success"); |
49 } |
55 } |
56 buf.Close(); |
62 buf.Close(); |
57 delete[] myfinalstring; |
63 delete[] myfinalstring; |
58 } |
64 } |
59 __UHEAP_MARKEND; |
65 __UHEAP_MARKEND; |
60 testResultXml("integration_test_scenario27"); |
66 testResultXml("integration_test_scenario27"); |
|
67 return 0; |
61 } |
68 } |