Constructor StringTokenizer
StringTokenizer(String)
Constructs a new StringTokenizer for the parameter string using
whitespace as the delimiter. The Lucene.Net.Support.StringTokenizer.returnDelimiters flag is set to
false
.
Declaration
public StringTokenizer(string str)
Parameters
Type | Name | Description |
---|---|---|
System.String | str | The string to be tokenized. |
StringTokenizer(String, String)
Constructs a new StringTokenizer for the parameter string using
the specified delimiters. The Lucene.Net.Support.StringTokenizer.returnDelimiters flag is set to
false
. If delimiters
is null
, this constructor
doesn't throw an
Declaration
public StringTokenizer(string str, string delimiters)
Parameters
Type | Name | Description |
---|---|---|
System.String | str | The string to be tokenized. |
System.String | delimiters | The delimiters to use. |
StringTokenizer(String, String, Boolean)
Constructs a new StringTokenizer for the parameter string using
the specified delimiters, returning the delimiters as tokens if the
parameter returnDelimiters
is true
. If delimiters
is null this constructor doesn't throw an
Declaration
public StringTokenizer(string str, string delimiters, bool returnDelimiters)
Parameters
Type | Name | Description |
---|---|---|
System.String | str | The string to be tokenized. |
System.String | delimiters | The delimiters to use. |
System.Boolean | returnDelimiters |
|