Generic string formatter
More...
|
virtual string | GetMatchingInput (string Input, char FormatChar, out char MatchChar) |
| Gets matching input More...
|
|
virtual bool | IsValid (string FormatPattern) |
| Checks if the format pattern is valid More...
|
|
|
virtual char | AlphaChar [get, protected set] |
| Represents alpha characters (defaults to @) More...
|
|
virtual char | DigitChar [get, protected set] |
| Represents digits (defaults to #) More...
|
|
virtual char | EscapeChar [get, protected set] |
| Represents the escape character (defaults to ) More...
|
|
Generic string formatter
Definition at line 32 of file GenericStringFormatter.cs.
Utilities.DataTypes.Formatters.GenericStringFormatter.GenericStringFormatter |
( |
| ) |
|
string Utilities.DataTypes.Formatters.GenericStringFormatter.Format |
( |
string |
format, |
|
|
object |
arg, |
|
|
IFormatProvider |
formatProvider |
|
) |
| |
Formats the string
- Parameters
-
format | Format to use |
arg | Argument object to use |
formatProvider | Format provider to use |
- Returns
- The formatted string
Definition at line 66 of file GenericStringFormatter.cs.
virtual string Utilities.DataTypes.Formatters.GenericStringFormatter.Format |
( |
string |
Input, |
|
|
string |
FormatPattern |
|
) |
| |
|
virtual |
object Utilities.DataTypes.Formatters.GenericStringFormatter.GetFormat |
( |
Type |
formatType | ) |
|
Gets the format associated with the type
- Parameters
-
- Returns
- The appropriate formatter based on the type
Definition at line 105 of file GenericStringFormatter.cs.
virtual string Utilities.DataTypes.Formatters.GenericStringFormatter.GetMatchingInput |
( |
string |
Input, |
|
|
char |
FormatChar, |
|
|
out char |
MatchChar |
|
) |
| |
|
protectedvirtual |
Gets matching input
- Parameters
-
Input | Input string |
FormatChar | Current format character |
MatchChar | The matching character found |
- Returns
- The remainder of the input string left
Definition at line 117 of file GenericStringFormatter.cs.
virtual bool Utilities.DataTypes.Formatters.GenericStringFormatter.IsValid |
( |
string |
FormatPattern | ) |
|
|
protectedvirtual |
Checks if the format pattern is valid
- Parameters
-
FormatPattern | Format pattern |
- Returns
- Returns true if it's valid, otherwise false
Definition at line 145 of file GenericStringFormatter.cs.
virtual char Utilities.DataTypes.Formatters.GenericStringFormatter.AlphaChar |
|
getprotected set |
virtual char Utilities.DataTypes.Formatters.GenericStringFormatter.DigitChar |
|
getprotected set |
virtual char Utilities.DataTypes.Formatters.GenericStringFormatter.EscapeChar |
|
getprotected set |
The documentation for this class was generated from the following file: