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 int retval[10]; |
27 int retval[10]; |
28 wchar_t* mycharstring = L"hello"; |
28 wchar_t* mycharstring = L"hello"; |
48 retval[5]= Hbufc16ToString(hbufc,mystring,size_hbufc); |
48 retval[5]= Hbufc16ToString(hbufc,mystring,size_hbufc); |
49 |
49 |
50 wchar_t* temp = new wchar_t[50]; |
50 wchar_t* temp = new wchar_t[50]; |
51 TPtrC16 tptrc; |
51 TPtrC16 tptrc; |
52 retval[6]= StringToTptrc16(mystring,temp,tptrc); |
52 retval[6]= StringToTptrc16(mystring,temp,tptrc); |
|
53 |
|
54 for(int i=1; i<=6; i++) |
|
55 { |
|
56 if (retval[i]!= 0) |
|
57 printf("Conversion failed for retval\n",retval[i]); |
|
58 } |
53 |
59 |
54 wchar_t* myfinalstring = new wchar_t[50]; |
60 wchar_t* myfinalstring = new wchar_t[50]; |
55 int size_fin=55; |
61 int size_fin=55; |
56 retval[7]= Tptrc16ToWcharp(tptrc,myfinalstring,size_fin); |
62 retval[7]= Tptrc16ToWcharp(tptrc,myfinalstring,size_fin); |
57 |
63 |
71 delete[] temp; |
77 delete[] temp; |
72 delete[] myfinalstring; |
78 delete[] myfinalstring; |
73 } |
79 } |
74 __UHEAP_MARKEND; |
80 __UHEAP_MARKEND; |
75 testResultXml("integration_test_scenario20"); |
81 testResultXml("integration_test_scenario20"); |
|
82 return 0; |
76 } |
83 } |