StringParserParseLine Method

Parses a line based on a collection of quote and delimiter characters,

Definition

Namespace: Gemstone.IO.Parsing
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.128 -- Release Build+d050cfc5563c89a1188cc3c6b2d417530856f490
public static string[]? ParseLine(
	string inString,
	char[]? quoteChars,
	char[]? delimiters,
	int startIndex = 0,
	bool removeResultQuotes = true
)

Parameters

inString  String
The string to parse
quoteChars  Char
An array of characters to be used as the framing within fields or the "quote" characters. Quotes must matched. Set to null to disable (split line at delimiter regardless of quotes).
delimiters  Char
An array of characters to be used as delimiter characters. These characters have equal weight in breaking up the line.
startIndex  Int32  (Optional)
The index in the line from which to start parsing.
removeResultQuotes  Boolean  (Optional)
Set to TRUE to unwrap quotes in returned array vis-a-vis Excel.

Return Value

String
An array of the parsed strings

Remarks

The string.split method is about 12 times faster.

See Also