Split() public method

Splits the given string into an array of strings by separating the string into substrings.
public Split ( string input, uint limit = uint.MaxValue ) : ArrayInstance
input string The string to split.
limit uint The maximum number of array items to return. Defaults to unlimited.
return ArrayInstance
Ejemplo n.º 1
0
 /// <summary>
 /// Splits this string into an array of strings by separating the string into substrings.
 /// </summary>
 /// <param name="regExp"> A regular expression that indicates where to split the string. </param>
 /// <param name="limit"> The maximum number of array items to return.  Defaults to unlimited. </param>
 /// <returns> An array containing the split strings. </returns>
 public static ArrayInstance Split(string thisObject, RegExpInstance regExp, [DefaultParameterValue(uint.MaxValue)] uint limit = uint.MaxValue)
 {
     return regExp.Split(thisObject, limit);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Splits this string into an array of strings by separating the string into substrings.
 /// </summary>
 /// <param name="regExp"> A regular expression that indicates where to split the string. </param>
 /// <param name="limit"> The maximum number of array items to return.  Defaults to unlimited. </param>
 /// <returns> An array containing the split strings. </returns>
 public static ArrayInstance Split(string thisObject, RegExpInstance regExp, [DefaultParameterValue(uint.MaxValue)] uint limit = uint.MaxValue)
 {
     return(regExp.Split(thisObject, limit));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Splits this string into an array of strings by separating the string into substrings.
 /// </summary>
 /// <param name="thisObject"> The string that is being operated on. </param>
 /// <param name="regExp"> A regular expression that indicates where to split the string. </param>
 /// <param name="limit"> The maximum number of array items to return.  Defaults to unlimited. </param>
 /// <returns> An array containing the split strings. </returns>
 public static ArrayInstance Split(string thisObject, RegExpInstance regExp, uint limit = uint.MaxValue)
 {
     return(regExp.Split(thisObject, limit));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Splits this string into an array of strings by separating the string into substrings.
 /// </summary>
 /// <param name="thisObject"> The string that is being operated on. </param>
 /// <param name="regExp"> A regular expression that indicates where to split the string. </param>
 /// <param name="limit"> The maximum number of array items to return.  Defaults to unlimited. </param>
 /// <returns> An array containing the split strings. </returns>
 public static ArrayInstance Split(string thisObject, RegExpInstance regExp, uint limit = uint.MaxValue)
 {
     return regExp.Split(thisObject, limit);
 }