C# Client Library
A C# Client Library for the AnalyzeRe REST API
Loading...
Searching...
No Matches
AnalyzeRe.Utilities.StringSplitter Class Reference

A high performance string splitter https://github.com/meikeric/String.Split/blob/master/Split.cs. More...

Public Member Functions

 StringSplitter (int bufferSize)
 Create a new StringSplitter object with the given buffer size.
 
int SafeSplit (string value, char separator)
 Returns a string array that contains the substrings in this instance that are delimited by elements of a specified string or Unicode character array. This method is safe and will automatically adjust the buffer if needed.
 
int SafeSplit (string value, char separator, StringSplitOptions options)
 Returns a string array that contains the substrings in this instance that are delimited by elements of a specified string or Unicode character array. This method is safe and will automatically adjust the buffer if needed.
 
int SafeSplit (string value, char[] separators)
 Returns a string array that contains the substrings in this instance that are delimited by elements of a specified string or Unicode character array. This method is unsafe and can throw IndexOutOfRange exception if we overflow the buffer.
 
int SafeSplit (string value, char[] separators, StringSplitOptions options)
 Returns a string array that contains the substrings in this instance that are delimited by elements of a specified string or Unicode character array. This method is unsafe and can throw IndexOutOfRange exception if we overflow the buffer.
 
int SafeSplit (string value, string separator)
 Split the string.
 
int SafeSplit (string value, string separator, StringSplitOptions options)
 Split the string.
 
int Split (string value, char separator)
 Returns a string array that contains the substrings in this instance that are delimited by elements of a specified string or Unicode character array. This method is unsafe and can throw IndexOutOfRange exception if we overflow the buffer.
 
int Split (string value, char separator, StringSplitOptions options)
 Returns a string array that contains the substrings in this instance that are delimited by elements of a specified string or Unicode character array. This method is unsafe and can throw IndexOutOfRange exception if we overflow the buffer.
 
int Split (string value, char[] separators)
 Returns a string array that contains the substrings in this instance that are delimited by elements of a specified string or Unicode character array. This method is unsafe and can throw IndexOutOfRange exception if we overflow the buffer.
 
int Split (string value, char[] separators, StringSplitOptions options)
 Returns a string array that contains the substrings in this instance that are delimited by elements of a specified string or Unicode character array. This method is unsafe and can throw IndexOutOfRange exception if we overflow the buffer.
 
int Split (string value, string separator)
 Returns a string array that contains the substrings in this instance that are delimited by a specified string or Unicode character array.
 
int Split (string value, string separator, StringSplitOptions options)
 Returns a string array that contains the substrings in this instance that are delimited by a specified string or Unicode character array.
 

Public Attributes

string[] buffer
 The string buffer container.
 

Properties

string[] Results [get]
 Get the results of the last split call.
 

Detailed Description

A high performance string splitter https://github.com/meikeric/String.Split/blob/master/Split.cs.

Definition at line 9 of file StringSplitter.cs.

Constructor & Destructor Documentation

◆ StringSplitter()

AnalyzeRe.Utilities.StringSplitter.StringSplitter ( int  bufferSize)
inline

Create a new StringSplitter object with the given buffer size.

Parameters
bufferSize

Definition at line 15 of file StringSplitter.cs.

Member Function Documentation

◆ SafeSplit() [1/6]

int AnalyzeRe.Utilities.StringSplitter.SafeSplit ( string  value,
char  separator 
)
inline

Returns a string array that contains the substrings in this instance that are delimited by elements of a specified string or Unicode character array. This method is safe and will automatically adjust the buffer if needed.

Parameters
value
separator
Returns
The number of results found

Definition at line 71 of file StringSplitter.cs.

◆ SafeSplit() [2/6]

int AnalyzeRe.Utilities.StringSplitter.SafeSplit ( string  value,
char  separator,
StringSplitOptions  options 
)
inline

Returns a string array that contains the substrings in this instance that are delimited by elements of a specified string or Unicode character array. This method is safe and will automatically adjust the buffer if needed.

Parameters
value
separator
options
Returns
The number of results found

Definition at line 344 of file StringSplitter.cs.

◆ SafeSplit() [3/6]

int AnalyzeRe.Utilities.StringSplitter.SafeSplit ( string  value,
char[]  separators 
)
inline

Returns a string array that contains the substrings in this instance that are delimited by elements of a specified string or Unicode character array. This method is unsafe and can throw IndexOutOfRange exception if we overflow the buffer.

Parameters
value
separators
Exceptions
IndexOutOfRangeExceptionIndexOutOfRange
Returns
The number of results found

Definition at line 248 of file StringSplitter.cs.

◆ SafeSplit() [4/6]

int AnalyzeRe.Utilities.StringSplitter.SafeSplit ( string  value,
char[]  separators,
StringSplitOptions  options 
)
inline

Returns a string array that contains the substrings in this instance that are delimited by elements of a specified string or Unicode character array. This method is unsafe and can throw IndexOutOfRange exception if we overflow the buffer.

Parameters
value
separators
options
Exceptions
IndexOutOfRangeExceptionIndexOutOfRange
Returns
The number of results found

Definition at line 559 of file StringSplitter.cs.

◆ SafeSplit() [5/6]

int AnalyzeRe.Utilities.StringSplitter.SafeSplit ( string  value,
string  separator 
)
inline

Split the string.

Parameters
valueThe number of results found
separator
Returns

Definition at line 151 of file StringSplitter.cs.

◆ SafeSplit() [6/6]

int AnalyzeRe.Utilities.StringSplitter.SafeSplit ( string  value,
string  separator,
StringSplitOptions  options 
)
inline

Split the string.

Parameters
valueThe number of results found
separator
options
Returns

Definition at line 443 of file StringSplitter.cs.

◆ Split() [1/6]

int AnalyzeRe.Utilities.StringSplitter.Split ( string  value,
char  separator 
)
inline

Returns a string array that contains the substrings in this instance that are delimited by elements of a specified string or Unicode character array. This method is unsafe and can throw IndexOutOfRange exception if we overflow the buffer.

Parameters
value
separator
Exceptions
IndexOutOfRangeExceptionIndexOutOfRange
Returns
The number of results found

Definition at line 39 of file StringSplitter.cs.

◆ Split() [2/6]

int AnalyzeRe.Utilities.StringSplitter.Split ( string  value,
char  separator,
StringSplitOptions  options 
)
inline

Returns a string array that contains the substrings in this instance that are delimited by elements of a specified string or Unicode character array. This method is unsafe and can throw IndexOutOfRange exception if we overflow the buffer.

Parameters
value
separator

///

Parameters
options
Exceptions
IndexOutOfRangeExceptionIndexOutOfRange
Returns
The number of results found

Definition at line 304 of file StringSplitter.cs.

◆ Split() [3/6]

int AnalyzeRe.Utilities.StringSplitter.Split ( string  value,
char[]  separators 
)
inline

Returns a string array that contains the substrings in this instance that are delimited by elements of a specified string or Unicode character array. This method is unsafe and can throw IndexOutOfRange exception if we overflow the buffer.

Parameters
value
separators
Exceptions
IndexOutOfRangeExceptionIndexOutOfRange
Returns
The number of results found

Definition at line 205 of file StringSplitter.cs.

◆ Split() [4/6]

int AnalyzeRe.Utilities.StringSplitter.Split ( string  value,
char[]  separators,
StringSplitOptions  options 
)
inline

Returns a string array that contains the substrings in this instance that are delimited by elements of a specified string or Unicode character array. This method is unsafe and can throw IndexOutOfRange exception if we overflow the buffer.

Parameters
value
separators
options
Exceptions
IndexOutOfRangeExceptionIndexOutOfRange
Returns
The number of results found

Definition at line 507 of file StringSplitter.cs.

◆ Split() [5/6]

int AnalyzeRe.Utilities.StringSplitter.Split ( string  value,
string  separator 
)
inline

Returns a string array that contains the substrings in this instance that are delimited by a specified string or Unicode character array.

Parameters
value
separator
Returns
The number of results found

Definition at line 112 of file StringSplitter.cs.

◆ Split() [6/6]

int AnalyzeRe.Utilities.StringSplitter.Split ( string  value,
string  separator,
StringSplitOptions  options 
)
inline

Returns a string array that contains the substrings in this instance that are delimited by a specified string or Unicode character array.

Parameters
value
separator
options
Returns
The number of results found

Definition at line 393 of file StringSplitter.cs.

Member Data Documentation

◆ buffer

string [] AnalyzeRe.Utilities.StringSplitter.buffer

The string buffer container.

Definition at line 23 of file StringSplitter.cs.

Property Documentation

◆ Results

string [] AnalyzeRe.Utilities.StringSplitter.Results
get

Get the results of the last split call.

Definition at line 28 of file StringSplitter.cs.


The documentation for this class was generated from the following file: