Split() static private method

Does a split. In the right-to-left case we reorder the array to be forwards.
static private Split ( Regex regex, string input, int count, int startat ) : string[]
regex Regex
input string
count int
startat int
return string[]
Esempio n. 1
0
File: Regex.cs Progetto: jnm2/corefx
        /// <summary>
        /// Splits the <paramref name="input"/> string at the position defined by a
        /// previous pattern.
        /// </summary>
        public string[] Split(string input, int count)
        {
            if (input == null)
                throw new ArgumentNullException(nameof(input));

            return RegexReplacement.Split(this, input, count, UseOptionR() ? input.Length : 0);
        }
Esempio n. 2
0
File: Regex.cs Progetto: jnm2/corefx
        /// <summary>
        /// Splits the <paramref name="input"/> string at the position defined by a
        /// previous pattern.
        /// </summary>
        public string[] Split(string input, int count, int startat)
        {
            if (input == null)
                throw new ArgumentNullException(nameof(input));

            return RegexReplacement.Split(this, input, count, startat);
        }
Esempio n. 3
0
 public string[] Split(string input, int count)
 {
     if (input == null)
     {
         throw new ArgumentNullException();
     }
     return(RegexReplacement.Split(this, input, count, this.UseOptionR() ? input.Length : 0));
 }
Esempio n. 4
0
 public string[] Split(string input, int count, int startat)
 {
     if (input == null)
     {
         throw new ArgumentNullException("input");
     }
     return(RegexReplacement.Split(this, input, count, startat));
 }