Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

StringUtils.Split(String, String, Boolean, Boolean, String) Method

Tokenize the given String into a String array.

[Visual Basic]
Public Overloads Shared Sub Split( _
   ByVal s As String, _
   ByVal delimiters As String, _
   ByVal trimTokens As Boolean, _
   ByVal ignoreEmptyTokens As Boolean, _
   ByVal quoteChars As String _
)
[C#]
public static string[] Split(
   string s,
   string delimiters,
   bool trimTokens,
   bool ignoreEmptyTokens,
   string quoteChars
);

Parameters

s
The String to tokenize.
delimiters
The delimiter characters, assembled as a String.
trimTokens
Trim the tokens via Trim.
ignoreEmptyTokens
Omit empty tokens from the result array.
quoteChars
Pairs of quote characters. delimiters within a pair of quotes are ignored

Return Value

An array of the tokens.

Remarks

If s is a null reference (Nothing in Visual Basic), returns an empty String array.

If delimiters is a null reference (Nothing in Visual Basic) or the empty String, returns a String array with one element: s itself.

See Also

StringUtils Class | Spring.Util Namespace | StringUtils.Split Overload List