Document that translate() removes characters in "from" that don't have
a corresponding "to" character. Author: Josh Kupershmidt
This commit is contained in:
parent
07f1264dda
commit
33ae03f400
|
@ -1866,10 +1866,12 @@
|
||||||
Any character in <parameter>string</parameter> that matches a
|
Any character in <parameter>string</parameter> that matches a
|
||||||
character in the <parameter>from</parameter> set is replaced by
|
character in the <parameter>from</parameter> set is replaced by
|
||||||
the corresponding character in the <parameter>to</parameter>
|
the corresponding character in the <parameter>to</parameter>
|
||||||
set
|
set. If <parameter>from</parameter> is longer than
|
||||||
|
<parameter>to</parameter>, occurrences of the extra characters in
|
||||||
|
<parameter>from</parameter> are removed.
|
||||||
</entry>
|
</entry>
|
||||||
<entry><literal>translate('12345', '14', 'ax')</literal></entry>
|
<entry><literal>translate('12345', '143', 'ax')</literal></entry>
|
||||||
<entry><literal>a23x5</literal></entry>
|
<entry><literal>a2x5</literal></entry>
|
||||||
</row>
|
</row>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
Loading…
Reference in New Issue