ShaderInterpreter.Converter.IndexOfBetween C# (CSharp) Method

IndexOfBetween() private static method

Same as IndexOf except it returns -1 if the match is outside of the specified [Start,End] range
private static IndexOfBetween ( string _Source, string _Pattern, int _StartIndex, int _EndIndex ) : int
_Source string
_Pattern string
_StartIndex int
_EndIndex int
return int
        private static int IndexOfBetween( string _Source, string _Pattern, int _StartIndex, int _EndIndex )
        {
            int	MatchIndex = _Source.IndexOf( _Pattern, _StartIndex, StringComparison.InvariantCultureIgnoreCase );
            return MatchIndex < _EndIndex ? MatchIndex : -1;
        }