Split() 정적인 개인적인 메소드

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
리턴 string[]
예제 #1
0
파일: Regex.cs 프로젝트: 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);
        }
예제 #2
0
파일: Regex.cs 프로젝트: 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);
        }
예제 #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));
 }
예제 #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));
 }