Esempio n. 1
0
 private bool ParseCommaOrWhitespace(StringPtr ptr)
 {
     if (ptr.IsEnd)
     {
         return(false);
     }
     if (ptr.IsWhitespace())
     {
         ++ptr;
         ptr.AdvanceWhiteSpace();
         if (ptr.Char == ',')
         {
             ++ptr;
         }
         ptr.AdvanceWhiteSpace();
         return(true);
     }
     else if (ptr.Char == ',')
     {
         ++ptr;
         ptr.AdvanceWhiteSpace();
         return(true);
     }
     return(false);
 }