stdcpp/tsrc/Stdcpp_test/bcdrivers/twiostreams/src/twiostreamsblocks.cpp
changeset 22 ddc455616bd6
parent 0 e4d67989cc36
child 45 4b03adbd26ca
child 57 2efc27d87e1c
equal deleted inserted replaced
18:47c74d1534e1 22:ddc455616bd6
   137 			   failures++;
   137 			   failures++;
   138 			      
   138 			      
   139 
   139 
   140 			  
   140 			  
   141 			   string str5a ( "Hello World");
   141 			   string str5a ( "Hello World");
   142 			    basic_string <char>::iterator strp_Iter, str1_Iter, str2_Iter;
   142 			    basic_string <char>::iterator strp_Iter;
   143 			   
   143 			   
   144 			   
   144 			   
   145 			   
   145 			   
   146 			   strp_Iter = str5a.begin();
   146 			   strp_Iter = str5a.begin();
   147 			   if(*strp_Iter != 'H' )
   147 			   if(*strp_Iter != 'H' )
   205 	 try
   205 	 try
   206 	 {
   206 	 {
   207 	 	
   207 	 	
   208 	 
   208 	 
   209    	 char* wszHello = "Hello World";
   209    	 char* wszHello = "Hello World";
   210    	 char wBuffer[128];
   210 //   	 char wBuffer[128];
   211    	  cout<<"";
   211    	  cout<<"";
   212 		    #if  STDCPP_OOM
   212 		    #if  STDCPP_OOM
   213 User::__DbgSetAllocFail(FALSE,RHeap::EDeterministic,1);
   213 User::__DbgSetAllocFail(FALSE,RHeap::EDeterministic,1);
   214   #endif 
   214   #endif 
   215 		
   215 		
   279  		
   279  		
   280      typedef std::basic_istream<char, std::char_traits<char> >         Input;
   280      typedef std::basic_istream<char, std::char_traits<char> >         Input;
   281     typedef std::basic_ofstream<Input::char_type, Input::traits_type> Output;
   281     typedef std::basic_ofstream<Input::char_type, Input::traits_type> Output;
   282 	 
   282 	 
   283 		
   283 		
   284     Input::char_type s [200];
   284 //    Input::char_type s [200];
   285  
   285  
   286     Output out ("c:\\TestFramework\\docs\\basicistream.txt", std::ios::in | std::ios::out | std::ios::trunc);
   286     Output out ("c:\\TestFramework\\docs\\basicistream.txt", std::ios::in | std::ios::out | std::ios::trunc);
   287 
   287 
   288      Input in (out.rdbuf ());
   288      Input in (out.rdbuf ());
   289 
   289 
   463  	try
   463  	try
   464  	{
   464  	{
   465  		
   465  		
   466  	
   466  	
   467  int length;
   467  int length;
   468 wchar_t * buffer;
   468 //wchar_t * buffer;
   469 wchar_t getl[16] ;
   469 wchar_t getl[16] ;
   470  
   470  
   471  wfilebuf fb;
   471  wfilebuf fb;
   472   fb.open ("c:\\TestFramework\\docs\\wistream.txt",ios::in);
   472   fb.open ("c:\\TestFramework\\docs\\wistream.txt",ios::in);
   473    cout<<"";
   473    cout<<"";
   647    try
   647    try
   648    {
   648    {
   649    	
   649    	
   650    
   650    
   651    	int output[5];
   651    	int output[5];
   652    int n,val;
   652    int n = 0,val = 0;
   653    wstring strvalues ;
   653    wstring strvalues ;
   654    
   654    
   655    strvalues = L"1 2 3 4 5";
   655    strvalues = L"1 2 3 4 5";
   656     cout<<"";
   656     cout<<"";
   657     #if  STDCPP_OOM
   657     #if  STDCPP_OOM