Метод | Описание | |
---|---|---|
IniDataParser ( ) : System |
Ctor The parser uses a IniParserConfiguration by default |
|
IniDataParser ( |
Ctor
|
|
Parse ( string iniDataString ) : |
Parses a string containing valid ini data
|
Метод | Описание | |
---|---|---|
ExtractComment ( string line ) : string |
Removes a comment from a string if exist, and returns the string without the comment substring.
|
|
ExtractKey ( string s ) : string |
Extracts the key portion of a string containing a key/value pair..
|
|
ExtractValue ( string s ) : string |
Extracts the value portion of a string containing a key/value pair..
|
|
HandleDuplicatedKeyInCollection ( string key, string value, KeyDataCollection keyDataCollection, string sectionName ) : void |
Abstract Method that decides what to do in case we are trying to add a duplicated key to a section
|
|
LineContainsAComment ( string line ) : bool |
Checks if a given string contains a comment.
|
|
LineMatchesAKeyOnly ( string line ) : bool |
Checks if a given string represents a key-only line
|
|
LineMatchesAKeyValuePair ( string line ) : bool |
Checks if a given string represents a key / value pair.
|
|
LineMatchesASection ( string line ) : bool |
Checks if a given string represents a section delimiter.
|
|
ProcessKeyOnly ( string line, |
Processes a string containing an ini key/value pair.
|
|
ProcessKeyValuePair ( string line, |
Processes a string containing an ini key/value pair.
|
|
ProcessLine ( string currentLine, |
Processes one line and parses the data found in that line (section or key/value pair who may or may not have comments)
|
|
ProcessSection ( string line, |
Proccess a string which contains an ini section.
|
Метод | Описание | |
---|---|---|
AddKeyToKeyValueCollection ( string key, string value, KeyDataCollection keyDataCollection, string sectionName ) : void |
Adds a key to a concrete KeyDataCollection instance, checking if duplicate keys are allowed in the configuration
|
protected ExtractComment ( string line ) : string | ||
line | string | /// The string we want to remove the comments from. /// |
Результат | string |
protected ExtractKey ( string s ) : string | ||
s | string | /// The string to be processed, which contains a key/value pair /// |
Результат | string |
protected ExtractValue ( string s ) : string | ||
s | string | /// The string to be processed, which contains a key/value pair /// |
Результат | string |
protected HandleDuplicatedKeyInCollection ( string key, string value, KeyDataCollection keyDataCollection, string sectionName ) : void | ||
key | string | |
value | string | |
keyDataCollection | KeyDataCollection | |
sectionName | string | |
Результат | void |
public IniDataParser ( |
||
parserConfiguration |
/// Parser's |
|
Результат | System |
protected LineContainsAComment ( string line ) : bool | ||
line | string | /// String with a line to be checked. /// |
Результат | bool |
protected LineMatchesAKeyOnly ( string line ) : bool | ||
line | string | /// The string to be checked. /// |
Результат | bool |
protected LineMatchesAKeyValuePair ( string line ) : bool | ||
line | string | /// The string to be checked. /// |
Результат | bool |
protected LineMatchesASection ( string line ) : bool | ||
line | string | /// The string to be checked. /// |
Результат | bool |
public Parse ( string iniDataString ) : |
||
iniDataString | string | /// String with data /// |
Результат |
protected ProcessKeyOnly ( string line, |
||
line | string | /// The string to be processed /// |
currentIniData | ||
Результат | void |
protected ProcessKeyValuePair ( string line, |
||
line | string | /// The string to be processed /// |
currentIniData | ||
Результат | void |
protected ProcessLine ( string currentLine, |
||
currentLine | string | The string with the line to process |
currentIniData | ||
Результат | void |
protected ProcessSection ( string line, |
||
line | string | /// The string to be processed /// |
currentIniData | ||
Результат | void |