utilitylibraries/libutils/tsrc/src/test_rbuf16towstring_boundary1.cpp
branchRCL_3
changeset 57 2efc27d87e1c
parent 56 acd3cd4aaceb
equal deleted inserted replaced
56:acd3cd4aaceb 57:2efc27d87e1c
    19 #include<e32std.h>
    19 #include<e32std.h>
    20 #include <e32base.h>
    20 #include <e32base.h>
    21 #include "libutils.h"
    21 #include "libutils.h"
    22 #include"std_log_result.h"
    22 #include"std_log_result.h"
    23 #define LOG_FILENAME_LINE __FILE__, __LINE__
    23 #define LOG_FILENAME_LINE __FILE__, __LINE__
    24 int main()
    24 void main()
    25 {
    25 {
    26     __UHEAP_MARK;
    26     __UHEAP_MARK;
    27     {
    27     {
    28     wstring des;
    28     wstring des;
    29     int retval =ESuccess;	
    29     int retval =ESuccess;	
    31     buf.Create(10);
    31     buf.Create(10);
    32     retval = des.length();
    32     retval = des.length();
    33 
    33 
    34     buf.Copy((TUint16 *)"Hello",5);
    34     buf.Copy((TUint16 *)"Hello",5);
    35     buf.CleanupClosePushL();
    35     buf.CleanupClosePushL();
    36     //int size =15;
    36     int size =15;
    37     retval = Rbuf16ToWstring(buf, des);
    37     retval = Rbuf16ToWstring(buf, des);
    38 
    38 
    39     int rbuf_len = buf.Length();
    39     int rbuf_len = buf.Length();
    40     int string_len = des.length();
    40     int string_len = des.length();
    41     #ifdef __WINS__
    41     #ifdef __WINS__
    62     CleanupStack::PopAndDestroy(1);
    62     CleanupStack::PopAndDestroy(1);
    63     buf.Close();
    63     buf.Close();
    64     }
    64     }
    65     __UHEAP_MARKEND;
    65     __UHEAP_MARKEND;
    66     testResultXml("test_rbuf16towstring_boundary1");
    66     testResultXml("test_rbuf16towstring_boundary1");
    67 	return 0;
       
    68 }
    67 }