## $TRANSLATE## 1995 Version of ANSI (Equivalent to Current ISO Version) of Standard |

$TR[ANSLATE] ( __expr___{1} ,
__expr___{2} )

Let *s* be the value of __expr___{1},
$TRanslate(__expr___{1},__expr___{2})
returns an edited form of *s* in which all characters in
*s* which are found in __expr___{2} are
removed.

$TR[ANSLATE] ( __expr___{1} ,
__expr___{2} , __expr___{3} )

Let *s* be the value of __expr___{1},
$TRanslate(__expr___{1},__expr___{2},__expr___{3})
returns an edited form of *s* in which all characters in
*s* which are found in __expr___{2} are replaced
by the positionally corresponding character in
__expr___{3}. If a character in *s* appears more
than once in __expr___{2} the first (leftmost)
occurrence is used to positionally locate the translation.

Translation is performed once for each character in *s*.
Characters which are in *s* that are not in
__expr___{2} remain unchanged. Characters in
__expr___{2} which have no corresponding character in
__expr___{3} are deleted from *s* (this is the
case when __expr___{3} is shorter than
__expr___{2}).

Note: If the value of __expr___{2} is the empty
string, no translation is performed and *s* is returned
unchanged.

Copyright © Standard Documents; 1977-2018 MUMPS Development Committee;

Copyright © Examples: 1995-2018 Ed de Moel;

Copyright © Annotations: 2003-2008 Jacquard Systems Research

Copyright © Annotations: 2008-2018 Ed de Moel.

This page most recently updated on 12-Sep-2014, 13:34:35 .

For comments, contact Ed de Moel (demoel@jacquardsystems.com)