|
Joutsen v0.5.0+12-g5dd5f7e
|
A class that can format Strings with nummeric or named placeholders/identifiers. More...
Public Member Functions | |
| StringFormatter (IFormatProvider formatProvider=null) | |
| Creates a new instance with a format provider. More... | |
| string | Format (string format, params object[] values) |
| Formats a String with numeric placeholders. More... | |
| string | Format (string format, Map< String, Object > values) |
| Formats a String with named placeholders. More... | |
| string | Format (string format, object values) |
| Formats a String with named placeholders. More... | |
A class that can format Strings with nummeric or named placeholders/identifiers.
| Joutsen.StringFormatter.StringFormatter | ( | IFormatProvider | formatProvider = null | ) |
Creates a new instance with a format provider.
| formatProvider | the format provider to use to format values into strings. Uses the InvariantCulture if null. |
| string Joutsen.StringFormatter.Format | ( | string | format, |
| Map< String, Object > | values | ||
| ) |
Formats a String with named placeholders.
| format | The format String containing named placeholders |
| values | Pairs of name and value where each name is a placeholder that will be replaced with the corresponding value returns The formatted String |
| string Joutsen.StringFormatter.Format | ( | string | format, |
| object | values | ||
| ) |
Formats a String with named placeholders.
| format | The format String containing named placeholders |
| values | An System.Object where each property name used as a placeholder in the format String will be replaced with the properties value |
values object's property <name>. All additional formats that are supported by @seefw{System.String.Format are supported. | string Joutsen.StringFormatter.Format | ( | string | format, |
| params object[] | values | ||
| ) |
Formats a String with numeric placeholders.
| format | The format String |
| values | The objects that are filled into the format string according to their index in the array |