cbsatplugin/atmisccmdplugin/src/atcommandparser.cpp
changeset 51 625f43ae9362
parent 47 9e2a905b887f
child 57 5ebadcda06cb
equal deleted inserted replaced
49:9866e1d49556 51:625f43ae9362
   266         }
   266         }
   267     
   267     
   268     // Extract the token at this point            
   268     // Extract the token at this point            
   269     TPtrC8 retVal = iCmd.MarkedToken();
   269     TPtrC8 retVal = iCmd.MarkedToken();
   270     
   270     
   271     // Skip comma, space and control chars
   271     // Skip the first delimiter and any further space and control chars
   272     while(!iCmd.Eos() && (chr == ',' || chr.IsSpace() || chr.IsControl()))
   272     do
   273         {
   273       {
   274         iCmd.Inc();
   274       iCmd.Inc();
   275         chr = iCmd.Peek();
   275       chr = iCmd.Peek();
   276         }
   276       }
       
   277     while(!iCmd.Eos() && (chr.IsSpace() || chr.IsControl()));
       
   278     
   277     TRACE_FUNC_EXIT
   279     TRACE_FUNC_EXIT
   278     return retVal;
   280     return retVal;
   279     }
   281     }
   280 
   282 
   281 TInt TAtCommandParser::NextTextParam(TPtrC8& aParam)
   283 TInt TAtCommandParser::NextTextParam(TPtrC8& aParam)