C# Class ExoMerge.Aspose.MergeFields.MergeFieldSwitchParser

Parses trailing switches from a MERGEFIELD's code.
Inheritance: IOptionParser
Show file Open project: vc3/ExoMerge

Public Methods

Method Description
ExtractOptions ( string code, string>.KeyValuePair &switches ) : string

Extract switches from the given MERGEFIELD code and return the remainder of the code that doesn't pertain to the extracted switches.

MergeFieldSwitchParser ( ) : System.Collections.Generic

Creates a new merge field switch parser that will extract any switches that are found.

MergeFieldSwitchParser ( string switchKeys ) : System.Collections.Generic

Creates a new merge field switch parser that will extract only the given switches.

Private Methods

Method Description
RemoveSurroundingQuotes ( string value ) : string

Remove surrounding quotes from the given string.

Method Details

ExtractOptions() public method

Extract switches from the given MERGEFIELD code and return the remainder of the code that doesn't pertain to the extracted switches.
public ExtractOptions ( string code, string>.KeyValuePair &switches ) : string
code string The MERGEFIELD code to extract switches from.
switches string>.KeyValuePair The extracted switches.
return string

MergeFieldSwitchParser() public method

Creates a new merge field switch parser that will extract any switches that are found.
public MergeFieldSwitchParser ( ) : System.Collections.Generic
return System.Collections.Generic

MergeFieldSwitchParser() public method

Creates a new merge field switch parser that will extract only the given switches.
public MergeFieldSwitchParser ( string switchKeys ) : System.Collections.Generic
switchKeys string The switches to extract.
return System.Collections.Generic