|
StringParser Class
|
Like the Excel CSV Parser, only better.
Inheritance Hierarchy
Namespace: GSF.ParsingAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
Syntax public static class StringParser
Public NotInheritable Class StringParser
public ref class StringParser abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type StringParser = class end
GSF.Parsing.StringParser = function();
Type.createClass(
'GSF.Parsing.StringParser');
View SourceThe StringParser type exposes the following members.
Methods | Name | Description |
---|
| 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.
|
TopSee Also