TRANSLATE

From STX Wiki
< Programmer Guide‎ | Command Reference
Revision as of 15:05, 17 May 2010 by 193.171.195.8 (talk) (initial import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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