TRANSLATE

From STX Wiki
< Programmer Guide‎ | Command Reference
Revision as of 18:31, 18 November 2010 by Admin (talk | contribs) (1 revision: Initial import)
Jump to navigationJump to search

TRANSLATE

#str := TRANSLATE string sub1 trn1 [ subX trnX [ ... ]] [ /V|T ]

Translate all occurrences of the string 'subX' in 'string' to 'trnX'. The translated string is assigned to #str.

If the option /V is specified, string is treated as the name of a variable whose contents are searched. If the option /T is specified, string is treated as the name of a table item whose contents are searched.

#str := TRANSLATE 'I am getting tired of going to bed early' 'ing' 'ed'
um $#str

Navigation menu

Personal tools