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
        /// <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. 2
0
        /// <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));
        }