Make a string of text safe for use in a specified encoding.
[C#] string VetText(LanguageType type, bool vertical, string text) string VetText(LanguageType type, bool vertical, string text, Func<char, char> substitute)
string VetText(LanguageType type, bool vertical, string text) string VetText(LanguageType type, bool vertical, string text, Func<char, char> substitute)
may throw Exception()
The language type for the desired encoding.
Whether the writing direction should be horizontal or vertical.
The text to vet.
A function taking a character and returning a substitute character.
The vetted text.
Any characters which are not present in the encoding will be substituted with ones that are.
You can optionally specify a function to do the character substitution.
If your substitution function returns a character which is not present in the encoding an exception will be raised.
None.