Translate the specified characters
Member of Unicode Intrinsic Functions (PRIM_LIBI.IUnicodeIntrinsics)
|Result||*Result (Optional)||Unicode String||Resulting value after all values have been replaced|
|From||*Input||Unicode String||Characters to convert|
|To||*Input (Optional)||Unicode String||Replacement characters|
TranslateCharacters is used to substitute characters in the subject string with characters in the To string, using characters in the From string as a key. Whenever a character in the subject string matches a character in the From string it will be replaced with the equivalent character in the To string.
In this example, if #String contained "ABCCBA", the result would be "CBAABC""
#String2 := #String.TranslateCharacters( "ABC", "CBA"' )
All Component Classes
Febuary 18 V14SP2