Microsoft.VisualStudio.Language.Spellchecker.LineProgress.Char C# (CSharp) Method

Char() public method

public Char ( ) : char
return char
        public char Char()
        {
            return _lineText[_linePosition];
        }

Usage Example

Example #1
0
        private void ScanCharacter(LineProgress p)
        {
            if (!p.EndOfLine && p.Char() == '\\') // escaped character.  Eat it.
            {
                p.Advance(2);
            }
            else if (!p.EndOfLine && p.Char() != '\'') // non-escaped character.  Eat it.
            {
                p.Advance(1);
            }

            if (!p.EndOfLine && p.Char() == '\'') // closing ' for character, as expected.
            {
                p.Advance(1);
                p.State = State.Default;
                return;
            }

            // Didn't find closing ' for character.  Oh well.
            p.State = State.Default;
        }
All Usage Examples Of Microsoft.VisualStudio.Language.Spellchecker.LineProgress::Char