Rev 5921 | Rev 11292 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5921 | Rev 11210 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | !! +var+ +exec+ +string+ |
1 | !! +var+ +exec+ +string+ |
2 |
|
2 | tit:translate |
3 | $(lst_syntax)translate [internal] $emph s1 $emphend to $emph s2 $emphend in $emph |
- | |
4 |
|
3 | type:$type_both |
5 |
|
4 | syntax:!translate [internal] `s1' to `s2' in `string'\ |
6 |
|
5 | !translate [internal] `s1' in `string' to `s2' |
7 |
|
6 | mean:String manipulation: variable substitution is first done on `string'. \ |
8 |
|
7 | Then all occurences of the first (resp. second, ...)\ |
9 | character of |
8 | character of `s1' is replaced by the first (resp. second, ...)\ |
10 | character of |
9 | character of `s2'. <br/>\ |
11 | When the keyword $emph internal $emphend is absent, |
- | |
12 |
|
10 | When the keyword `internal' is absent, the Linux utility `tr' is called to make the translations,\ |
13 | therefore regular expressions are accepted in |
11 | therefore regular expressions are accepted in `s1' and `s2'. \ |
14 |
|
12 | Please refer to the man page of `tr' for details. |
15 | details. <br/> |
- |