localconnectivityservice/dun/atext/src/DunAtCmdHandler.cpp
changeset 37 d9d8313203af
parent 31 a26669f87b46
child 52 866b4af7ffbe
equal deleted inserted replaced
35:c4c427c00f31 37:d9d8313203af
   853         {
   853         {
   854         iEndIndex = KErrNotFound;
   854         iEndIndex = KErrNotFound;
   855         FTRACE(FPrint( _L("CDunAtCmdHandler::ExtractLineFromInputBuffer() (more needed) complete") ));
   855         FTRACE(FPrint( _L("CDunAtCmdHandler::ExtractLineFromInputBuffer() (more needed) complete") ));
   856         return ETrue;
   856         return ETrue;
   857         }
   857         }
   858     // As a last step adjust the possible multiple IsDelimiterCharacter()
       
   859     // characters and set length of iLineBuffer. Leave iEndIndex untouched.
       
   860     lineLength = iLineBuffer.Length();
       
   861     for ( TInt i=lineLength-1; i>=0; i-- )
       
   862         {
       
   863         TChar character = iLineBuffer[i];
       
   864         if ( !IsDelimiterCharacter(character) )
       
   865             {
       
   866             iLineBuffer.SetLength( i + 1 );
       
   867             FTRACE(FPrint( _L("CDunAtCmdHandler::ExtractLineFromInputBuffer() after (%d bytes):"), iLineBuffer.Length() ));
       
   868             FTRACE(FPrintRaw(iLineBuffer) );
       
   869             break;
       
   870             }
       
   871         }
       
   872     FTRACE(FPrint( _L("CDunAtCmdHandler::ExtractLineFromInputBuffer() (line found) complete") ));
   858     FTRACE(FPrint( _L("CDunAtCmdHandler::ExtractLineFromInputBuffer() (line found) complete") ));
   873     return EFalse;
   859     return EFalse;
   874     }
   860     }
   875 
   861 
   876 // ---------------------------------------------------------------------------
   862 // ---------------------------------------------------------------------------