TRANSLATE
From STX Wiki
Jump to navigationJump to search
#str := TRANSLATE string sub1 trn1 [ subX trnX [ … ]] #str := TRANSLATE variable sub1 trn1 [ subX trnX [ … ]] /Variable #str := TRANSLATE tabke sub1 trn1 [ subX trnX [ … ]] /Table
The STx command TRANSLATE
returns a modified copy of its string argument, the modification being that all occurrences of the string subN are replaced by the string trnN.
If the option /Variable is specified, string is treated as the name of a variable whose contents will be used as the string to TRANSLATE
. If the option /Table
is specified, string is treated as the name of a table item whose contents will be used as the string to TRANSLATE
.
#str := TRANSLATE 'I am getting tired of going to bed early' 'ing' 'ed' um $#str