Click or drag to resize

StringParser Methods

The StringParser type exposes the following members.

Methods
  Name Description
Public method Static member ExpectedFieldNamesMatch Validates that expected field names match field names found.
Public method Static member FindIndex Finds the index of the first matching (or containing) field name
Public method Static member 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)
Public method Static member IndexOfMatchingCloseToken(String, Char, Char, Int32, Boolean) Looks to the RIGHT for the first open token and returns the matching close token
Public method Static member IndexOfMatchingCloseToken(String, String, String, Int32, Boolean) Looks to the RIGHT for the first open token and returns the matching close token
Public method Static member IndexOfNextToken(String, Char, Int32, Int32, Boolean) Finds the index of the "n" occurrence of a character (a token) within a string
Public method Static member IndexOfNextToken(String, String, Int32, Int32, Boolean) Finds the index of the "n" occurrence of one string (a token) within another
Public method Static member IndexOfNextTokens Finds the index of the "n" occurrence any one of the chars in the token array within a string
Public method Static member 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
Public method Static member 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
Public method Static member IndicesOfToken(String, Char, Int32, Boolean) Returns an array indices where the token char was found. Null for no tokens found.
Public method Static member IndicesOfToken(String, String, Int32, Boolean) Returns an array of indices where the token string was found
Public method Static member IndicesOfTokens Returns an array of the indices where the token chars were found. Null for no tokens found.
Public method Static member ParseCheck Parses strings and validates they match expected type codes.
Public method Static member ParseLine Parses a line based on a collection of quote and delimiter characters,
Public method Static member 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.
Top
See Also