testfws/stif/Parser/src/StifFileParser.cpp
changeset 4 b8d1455fddc0
parent 2 73b88125830c
equal deleted inserted replaced
2:73b88125830c 4:b8d1455fddc0
   590 
   590 
   591 	HBufC* withoutCommentsBuf = HBufC::NewL(KMaxLineLength);
   591 	HBufC* withoutCommentsBuf = HBufC::NewL(KMaxLineLength);
   592 	CleanupStack::PushL(withoutCommentsBuf);
   592 	CleanupStack::PushL(withoutCommentsBuf);
   593 	TPtr withoutCommentsBufPtr(withoutCommentsBuf->Des());
   593 	TPtr withoutCommentsBufPtr(withoutCommentsBuf->Des());
   594 
   594 
   595 	HBufC* endOfLine = HBufC::NewL(2);  //After reading a line it contains 0D0A or 0A or null (how readed line is ended)
   595 	HBufC* endOfLine = HBufC::NewL(8);  //After reading a line it contains 0D0A or 0A or null (how readed line is ended)
   596 	CleanupStack::PushL(endOfLine);
   596 	CleanupStack::PushL(endOfLine);
   597 	TPtr endOfLinePtr(endOfLine->Des());
   597 	TPtr endOfLinePtr(endOfLine->Des());
   598 
   598 
   599 	//Set valid position in file
   599 	//Set valid position in file
   600 	//but only if offset shows to 0. Otherwise keep previus position
   600 	//but only if offset shows to 0. Otherwise keep previus position