Class IsMatchFormatter
Formatter with evaluation of regular expressions.
Inherited Members
Namespace: UnityEngine.Localization.SmartFormat.Extensions
Syntax
[Serializable]
public class IsMatchFormatter : FormatterBase, IFormatter
Remarks
Syntax: {value:ismatch(regex): format | default} Or in context of a list: {myList:list:{:ismatch(^regex$):{:format}|'no match'}|, | and }
Constructors
IsMatchFormatter()
Declaration
public IsMatchFormatter()
Properties
RegexOptions
Declaration
public RegexOptions RegexOptions { get; set; }
Property Value
| Type | Description |
|---|---|
| RegexOptions |
Methods
TryEvaluateFormat(IFormattingInfo)
Declaration
public override bool TryEvaluateFormat(IFormattingInfo formattingInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| IFormattingInfo | formattingInfo |
Returns
| Type | Description |
|---|---|
| Boolean |