PeanutButter
Loading...
Searching...
No Matches
PeanutButter.INI Namespace Reference

Classes

class  BestEffortLineParser
 Provides the best-effort line parsing strategy - inherit from this to guide behavior, eg to set a custom comment delimiter or custom escaping of values, bearing in mind that doing so will probably make your ini file unreadable by other tooling. More...
class  DictionaryWrappingIniFileSection
class  EmptyEnumerator< T >
interface  IINIFile
 Contract provided by the PeanutButter INI parser. More...
interface  ILineParser
 Represents a line parser for parsing a data line into: More...
class  INIFile
interface  IParsedLine
 Represents a parsed data line. More...
class  MergedIniFile
class  ParsedLine
class  StrictLineParser
class  StringExtensions

Enumerations

enum  MergeStrategies { OnlyAddIfMissing , Override }
 Strategies which may be employed when merging INI data. More...
enum  PersistStrategies { ExcludeMergedConfigurations , IncludeMergedConfigurations }
 Strategies which may be employed when persisting INI files. More...
enum  ParseStrategies { BestEffort , Strict , Custom }
 Strategies which may be employed for parsing INI data. More...

Enumeration Type Documentation

◆ MergeStrategies

Strategies which may be employed when merging INI data.

Enumerator
OnlyAddIfMissing 

Only add merged-in data when it's not already found.

Override 

Override existing data with subsequent merges.

◆ ParseStrategies

Strategies which may be employed for parsing INI data.

Enumerator
BestEffort 

Use the Best Effort line parser which may give unpredicted results, especially if you have inline comments with quotes in them.

Strict 

Use the Strict line parser which expects that backslashes and quotes within values are always escaped by another backslash, eg: key="value \"in quotes\" \\slash\\".

Custom 

You must provide your own implementation of ILineParser.

◆ PersistStrategies

Strategies which may be employed when persisting INI files.

Enumerator
ExcludeMergedConfigurations 

Exclude merged configurations when persisting.

IncludeMergedConfigurations 

Include merged configurations when persisting.