ShaderInterpreter.Converter.FindEOL C# (CSharp) Method

FindEOL() private static method

Finds teh index of the end of the current line
private static FindEOL ( string _Source, int _StartIndex ) : int
_Source string
_StartIndex int
return int
        private static int FindEOL( string _Source, int _StartIndex )
        {
            int	MatchIndex = _Source.IndexOf( '\n', _StartIndex );
            return MatchIndex != -1 ? MatchIndex : _Source.Length;	// EOF?
        }