CNCGUI.TextParser.MoveToEndOfLine C# (CSharp) Method

MoveToEndOfLine() public method

Moves the current position to the first character that is part of a newline
public MoveToEndOfLine ( ) : void
return void
        public void MoveToEndOfLine()
        {
            char c = Peek();
            while (c != '\r' && c != '\n' && !EndOfText)
            {
                MoveAhead();
                c = Peek();
            }
        }