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 int main() |
23 void 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"; |
29 RBuf16 buf; |
29 RBuf16 buf; |
30 buf.CreateL(30); |
|
31 retval[0]= WcharToRbuf16(mycharstring,buf); |
30 retval[0]= WcharToRbuf16(mycharstring,buf); |
32 |
31 |
33 wstring str; |
32 wstring str; |
34 retval[1]= Rbuf16ToWstring(buf,str); |
33 retval[1]= Rbuf16ToWstring(buf,str); |
35 |
34 |
49 retval[5]= Hbufc16ToString(hbufc,mystring,size_hbufc); |
48 retval[5]= Hbufc16ToString(hbufc,mystring,size_hbufc); |
50 |
49 |
51 wchar_t* temp = new wchar_t[50]; |
50 wchar_t* temp = new wchar_t[50]; |
52 TPtrC16 tptrc; |
51 TPtrC16 tptrc; |
53 retval[6]= StringToTptrc16(mystring,temp,tptrc); |
52 retval[6]= StringToTptrc16(mystring,temp,tptrc); |
54 |
|
55 for(int i=1; i<=6; i++) |
|
56 { |
|
57 if (retval[i]!= 0) |
|
58 printf("Conversion failed for retval\n",retval[i]); |
|
59 } |
|
60 |
53 |
61 wchar_t* myfinalstring = new wchar_t[50]; |
54 wchar_t* myfinalstring = new wchar_t[50]; |
62 int size_fin=55; |
55 int size_fin=55; |
63 retval[7]= Tptrc16ToWcharp(tptrc,myfinalstring,size_fin); |
56 retval[7]= Tptrc16ToWcharp(tptrc,myfinalstring,size_fin); |
64 |
57 |
78 delete[] temp; |
71 delete[] temp; |
79 delete[] myfinalstring; |
72 delete[] myfinalstring; |
80 } |
73 } |
81 __UHEAP_MARKEND; |
74 __UHEAP_MARKEND; |
82 testResultXml("integration_test_scenario20"); |
75 testResultXml("integration_test_scenario20"); |
83 return 0; |
|
84 } |
76 } |