CharacterMap<T> Class
Allows to associate characters to a data structures and query efficiently for them.
public sealed class CharacterMap<T> where T : classType parameters
T
Constructors
| Name | Description |
|---|---|
| CharacterMap(IEnumerable<KeyValuePair<char, T>>) | Initializes a new instance of the CharacterMap<T> class. |
CharacterMap(IEnumerable<KeyValuePair<char, T>>)
CharacterMap.csInitializes a new instance of the CharacterMap<T> class.
public CharacterMap(IEnumerable<KeyValuePair<char, T>> maps)Properties
| Name | Description |
|---|---|
| OpeningCharacters | Gets all the opening characters defined. |
OpeningCharacters
CharacterMap.csGets all the opening characters defined.
public char[] OpeningCharacters { get; }Property value
char[]
Indexers
| Name | Description |
|---|---|
| this[uint] | Gets the list of parsers valid for the specified opening character. |
this[uint]
CharacterMap.csMethods
| Name | Description |
|---|---|
| IndexOfOpeningCharacter(string, int, int) | Searches for an opening character from a registered parser in the specified string. |
IndexOfOpeningCharacter(string, int, int)
CharacterMap.csSearches for an opening character from a registered parser in the specified string.