ArgsTests.TestConsoleProvider.ReadAheadLookFor C# (CSharp) 메소드

ReadAheadLookFor() 개인적인 메소드

private ReadAheadLookFor ( string toFind ) : bool
toFind string
리턴 bool
        private bool ReadAheadLookFor(string toFind)
        {
            int k = 0;
            for (int j = i; j < i + toFind.Length; j++)
            {
                if (input[j] != toFind[k++])
                {
                    return false;
                }
            }
            i += toFind.Length;
            return true;
        }