Deveel.Readline.EraseWord C# (CSharp) Method

EraseWord() private static method

private static EraseWord ( ) : void
return void
        private static void EraseWord()
        {
            int temp = posn;
            while (temp > 0 && Char.IsWhiteSpace(buffer[temp - 1])) {
                --temp;
            }
            while (temp > 0 && !Char.IsWhiteSpace(buffer[temp - 1])) {
                --temp;
            }
            if (temp < posn) {
                temp = posn - temp;
                GoBack(temp);
                yankedString = new String(buffer, posn, temp);
                Delete(temp);
            }

            if (state != State.Completing)
                lastWord.Length = 0;
        }