StackStream.Lexer.SkipWhitespace C# (CSharp) Method

SkipWhitespace() public method

public SkipWhitespace ( ) : void
return void
        public void SkipWhitespace()
        {
            while (Pointer < Data.Length && (char.IsWhiteSpace(Data, Pointer) || Data[Pointer] == '#'))
            {
                if (Data[Pointer] == '#')
                {
                    int index = Data.IndexOf('\n', Pointer);
                    if (index < 0)
                        Pointer = Data.Length;
                    else
                        Pointer = index + 1;
                }
                Pointer++;
            }
        }