SplitQuoted() public static method

Split a string into its component pieces
public static SplitQuoted ( string original ) : string[]
original string The original string
return string[]
        // Token: 0x060007A5 RID: 1957 RVA: 0x0002C7CC File Offset: 0x0002A9CC
        public static bool IsValidFilterExpression(string toTest)
        {
            if (toTest == null)
            {
                throw new ArgumentNullException("toTest");
            }
            bool result = true;

            try
            {
                string[] array = NameFilter.SplitQuoted(toTest);
                for (int i = 0; i < array.Length; i++)
                {
                    if (array[i] != null && array[i].Length > 0)
                    {
                        string pattern;
                        if (array[i][0] == '+')
                        {
                            pattern = array[i].Substring(1, array[i].Length - 1);
                        }
                        else if (array[i][0] == '-')
                        {
                            pattern = array[i].Substring(1, array[i].Length - 1);
                        }
                        else
                        {
                            pattern = array[i];
                        }
                        new Regex(pattern, RegexOptions.IgnoreCase | RegexOptions.Singleline);
                    }
                }
            }
            catch (ArgumentException)
            {
                result = false;
            }
            return(result);
        }
 // Token: 0x060007AB RID: 1963 RVA: 0x0002CA84 File Offset: 0x0002AC84
 private void Compile()
 {
     if (this.filter_ == null)
     {
         return;
     }
     string[] array = NameFilter.SplitQuoted(this.filter_);
     for (int i = 0; i < array.Length; i++)
     {
         if (array[i] != null && array[i].Length > 0)
         {
             bool   flag = array[i][0] != '-';
             string pattern;
             if (array[i][0] == '+')
             {
                 pattern = array[i].Substring(1, array[i].Length - 1);
             }
             else if (array[i][0] == '-')
             {
                 pattern = array[i].Substring(1, array[i].Length - 1);
             }
             else
             {
                 pattern = array[i];
             }
             if (flag)
             {
                 this.inclusions_.Add(new Regex(pattern, RegexOptions.IgnoreCase | RegexOptions.Compiled | RegexOptions.Singleline));
             }
             else
             {
                 this.exclusions_.Add(new Regex(pattern, RegexOptions.IgnoreCase | RegexOptions.Compiled | RegexOptions.Singleline));
             }
         }
     }
 }