Class CharacterSubstitutor
Replaces characters in the input string.
Inheritance
CharacterSubstitutor
Syntax
[Serializable]
public class CharacterSubstitutor : IPseudoLocalizationMethod, ISerializationCallbackReceiver
Properties
ListMode
Declaration
public CharacterSubstitutor.ListSelectionMethod ListMode { get; set; }
Property Value
Method
The substitution method to use.
Declaration
public CharacterSubstitutor.SubstitutionMethod Method { get; set; }
Property Value
ReplacementList
The characters to use when using mode.
Declaration
public List<char> ReplacementList { get; }
Property Value
ReplacementMap
Dictionary of characters that will be replaced when using . Any value that is not present will be preserved.
Declaration
public Dictionary<char, char> ReplacementMap { get; }
Property Value
Methods
OnAfterDeserialize()
Declaration
public void OnAfterDeserialize()
OnBeforeSerialize()
Declaration
public void OnBeforeSerialize()
Replaces each character in the input with a replacement character if one can be found.
If a replacement character can not be found then the original is kept.
Declaration
public string Transform(string input)
Parameters
Type |
Name |
Description |
String |
input |
|
Returns
Implements