C-DEngine 5.105

TheCommonUtils..::..cdeSplit Method (String, Char, Boolean, Boolean)

Converts a string into a string array. if you don't need the Remove.. parameter, please use .NET .split() function. if you need the remove... parameter use the override with the string sep(erator)

Namespace:  nsCDEngine.BaseClasses
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public static string[] cdeSplit(
	string pToSplit,
	char sep,
	bool RemoveDuplicates,
	bool RemoveEmptyEntries
)
Public Shared Function cdeSplit ( _
	pToSplit As String, _
	sep As Char, _
	RemoveDuplicates As Boolean, _
	RemoveEmptyEntries As Boolean _
) As String()
public:
static array<String^>^ cdeSplit(
	String^ pToSplit, 
	wchar_t^ sep, 
	bool^ RemoveDuplicates, 
	bool^ RemoveEmptyEntries
)

Parameters

pToSplit
Type: String
The input string.
sep
Type: Char
The delimiter in the input string.
RemoveDuplicates
Type: Boolean
if true, the returning list does not contain duplicate entries
RemoveEmptyEntries
Type: Boolean
if true, the returning list does not contain empty entries

Return Value

An array of strings with the parsed results.