Method | Description | |
---|---|---|
BreakdownNugget ( string nugget ) : |
Parses a nugget string to breakdown the nugget into individual components.
|
|
NuggetParser ( |
||
ParseString ( string entity, Func |
Parses a string entity for nuggets, forwarding the nugget to a caller-provided delegate, with support for replacement of nugget strings in the entity.
|
Method | Description | |
---|---|---|
EscapeString ( string str, char escapeChar = '\\' ) : string |
Modifies a string such that each character is prefixed by another character (defaults to backslash).
|
|
NuggetFromRegexMatch ( |
Returns a nugget instance loaded from a regex match, or null if error.
|
public BreakdownNugget ( string nugget ) : |
||
nugget | string | Subject nugget string. |
return |
public NuggetParser ( |
||
nuggetTokens | ||
context | Context | |
return | System |
public ParseString ( string entity, Func |
||
entity | string | /// String containing nuggets to be parsed. E.g. source code file, HTTP response entity. /// |
ProcessNugget | Func |
/// Delegate callback to be called for each nugget encountered in entity: /// delegate(string nuggetString, int pos, Nugget nugget1, string entity1). /// Returns a string with which to replace the nugget string in the source entity. /// If no change, then may return null. /// |
return | string |