utilitylibraries/libutils/tsrc/src/integration_test_scenario19.cpp
changeset 34 5fae379060a7
parent 31 ce057bb09d0b
child 45 4b03adbd26ca
equal deleted inserted replaced
31:ce057bb09d0b 34:5fae379060a7
    25     __UHEAP_MARK;
    25     __UHEAP_MARK;
    26     {
    26     {
    27     wchar_t* mycharstring = L"hellohello";
    27     wchar_t* mycharstring = L"hellohello";
    28     int retval[10];
    28     int retval[10];
    29     RBuf16 buf;
    29     RBuf16 buf;
       
    30     buf.CreateL(30);
    30     retval[1]= WcharToRbuf16(mycharstring,buf);
    31     retval[1]= WcharToRbuf16(mycharstring,buf);
    31 
    32 
    32     wstring str;
    33     wstring str;
    33     retval[2]= Rbuf16ToWstring(buf,str);
    34     retval[2]= Rbuf16ToWstring(buf,str);
    34 
    35 
    39     wchar_t* myfinalstring= new wchar_t[25];
    40     wchar_t* myfinalstring= new wchar_t[25];
    40     int size=15;
    41     int size=15;
    41     retval[4]= Tbuf16ToWchar(tbuf,myfinalstring,size);
    42     retval[4]= Tbuf16ToWchar(tbuf,myfinalstring,size);
    42 
    43 
    43     RBuf8 buf8;
    44     RBuf8 buf8;
       
    45     buf8.CreateL(50);
    44     retval[5]= WcharToRbuf8(myfinalstring,buf8);
    46     retval[5]= WcharToRbuf8(myfinalstring,buf8);
    45 
    47 
    46     wstring str1;
    48     wstring str1;
    47     retval[6]= Rbuf8ToWstring(buf8,str1);
    49     retval[6]= Rbuf8ToWstring(buf8,str1);
    48 
    50