StringParser Class
Like the Excel CSV Parser, only better.
Namespace: Gemstone.IO.ParsingAssembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.128 -- Release Build+d050cfc5563c89a1188cc3c6b2d417530856f490
public static class StringParser
Public NotInheritable Class StringParser
public ref class StringParser abstract sealed
Gemstone.IO.Parsing.StringParser = function();
Type.createClass(
'Gemstone.IO.Parsing.StringParser');
- Inheritance
- Object StringParser
ExpectedFieldNamesMatch |
Validates that expected field names match field names found.
|
FindIndex |
Finds the index of the first matching (or containing) field name
|
GetBetweenDelimiters |
Returns the string that is between two delimiter strings beginning the first startDelimiter found.
ALSO, returns the index of the payload (the index of the first char past the startDelimiter)
|
IndexOfMatchingCloseToken(String, Char, Char, Int32, Boolean) |
Looks to the RIGHT for the first open token and returns the matching close token
|
IndexOfMatchingCloseToken(String, String, String, Int32, Boolean) |
Looks to the RIGHT for the first open token and returns the matching close token
|
IndexOfNextToken(String, Char, Int32, Int32, Boolean) |
Finds the index of the "n" occurrence of a character (a token) within a string
|
IndexOfNextToken(String, String, Int32, Int32, Boolean) |
Finds the index of the "n" occurrence of one string (a token) within another
|
IndexOfNextTokens |
Finds the index of the "n" occurrence any one of the chars in the token array within a string
|
IndexOfPreviousToken(String, Char, Int32, Int32, Boolean) |
Processing from RIGHT to LEFT, finds the index of the "n" occurrence of a character (a token) within a string
|
IndexOfPreviousToken(String, String, Int32, Int32, Boolean) |
Processing from RIGHT to LEFT, finds the index of the "n"occurrence of one string (a token) within a string
|
IndicesOfToken(String, Char, Int32, Boolean) |
Returns an array indices where the token char was found. Null for no tokens found.
|
IndicesOfToken(String, String, Int32, Boolean) |
Returns an array of indices where the token string was found
|
IndicesOfTokens |
Returns an array of the indices where the token chars were found. Null for no tokens found.
|
ParseCheck |
Parses strings and validates they match expected type codes.
|
ParseLine |
Parses a line based on a collection of quote and delimiter characters,
|
ParseStandardCSV |
Parses a line based on a comma as the separator. Commas wrapped in matched double quotes are not separators.
Matched double quotes are normally removed prior to field return. Fields are NOT trimmed of white spaces prior to return.
|