Class Smart
This class holds a Default instance of the SmartFormatter. The default instance has all extensions registered.
Namespace: UnityEngine.Localization.SmartFormat
Syntax
public static class Smart
Properties
Default
Declaration
public static SmartFormatter Default { get; set; }
Property Value
Type | Description |
---|---|
SmartFormatter |
Methods
CreateDefaultSmartFormat()
Declaration
public static SmartFormatter CreateDefaultSmartFormat()
Returns
Type | Description |
---|---|
SmartFormatter |
Format(IFormatProvider, String, Object[])
Declaration
public static string Format(IFormatProvider provider, string format, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
IFormatProvider | provider | |
String | format | |
Object[] | args |
Returns
Type | Description |
---|---|
String |
Format(String, Object)
Declaration
public static string Format(string format, object arg0)
Parameters
Type | Name | Description |
---|---|---|
String | format | |
Object | arg0 |
Returns
Type | Description |
---|---|
String |
Format(String, Object, Object)
Declaration
public static string Format(string format, object arg0, object arg1)
Parameters
Type | Name | Description |
---|---|---|
String | format | |
Object | arg0 | |
Object | arg1 |
Returns
Type | Description |
---|---|
String |
Format(String, Object, Object, Object)
Declaration
public static string Format(string format, object arg0, object arg1, object arg2)
Parameters
Type | Name | Description |
---|---|---|
String | format | |
Object | arg0 | |
Object | arg1 | |
Object | arg2 |
Returns
Type | Description |
---|---|
String |
Format(String, Object[])
Declaration
public static string Format(string format, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
String | format | |
Object[] | args |
Returns
Type | Description |
---|---|
String |