function

strtr_ctx . string . sncode

VERSIONlatest Translate substrings.

STRTR_CTX(1e)

NAME

strtr_ctx - Translate substrings.

SYNOPSIS

strtr_ctx(str,pairs)

PARAMETERS

str
The string being translated.
pairs
The context being translated to to.

RETURN

Returns the translated string.

EXAMPLES

in:  res=<{strtr_ctx("hello world, hi hhh",{"h":"-","hi":"hello","hello":"hi"})}>.
out: res=hi world, hello ---.

AUTHOR

Written by Pusnei Sergey, <sergey@sednove.com>