public class Format : FormatItem
Constructors
Declaration
public Format(SmartSettings smartSettings, string baseString)
Parameters
Declaration
public Format(SmartSettings smartSettings, Placeholder parent, int startIndex)
Parameters
Fields
Declaration
public readonly Placeholder parent
Field Value
Properties
Declaration
public bool HasNested { get; set; }
Property Value
Declaration
public List<FormatItem> Items { get; }
Property Value
Methods
GetLiteralText()
Retrieves the literal text contained in this format.
Excludes escaped chars, and does not include the text
of placeholders
Declaration
public string GetLiteralText()
Returns
Searches the literal text for the search char.
Does not search in nested placeholders.
Declaration
public int IndexOf(char search)
Parameters
Type |
Name |
Description |
Char |
search |
|
Returns
Searches the literal text for the search char.
Does not search in nested placeholders.
Declaration
public int IndexOf(char search, int startIndex)
Parameters
Type |
Name |
Description |
Char |
search |
|
Int32 |
startIndex |
|
Returns
Declaration
public IList<Format> Split(char search)
Parameters
Type |
Name |
Description |
Char |
search |
|
Returns
Declaration
public IList<Format> Split(char search, int maxCount)
Parameters
Type |
Name |
Description |
Char |
search |
|
Int32 |
maxCount |
|
Returns
Returns a substring of the current Format.
Declaration
public Format Substring(int startIndex)
Parameters
Type |
Name |
Description |
Int32 |
startIndex |
|
Returns
Returns a substring of the current Format.
Declaration
public Format Substring(int startIndex, int length)
Parameters
Type |
Name |
Description |
Int32 |
startIndex |
|
Int32 |
length |
|
Returns
Reconstructs the format string, but doesn't include escaped chars
and tries to reconstruct placeholders.
Declaration
public override string ToString()
Returns
Overrides