maketrans and translate

Stewart Gordon smjg_1998 at yahoo.com
Mon Feb 13 04:36:09 PST 2012


On 13/02/2012 03:04, bearophile wrote:
> In the online docs I've seen that std.string.maketrans() is (going to be) deprecated.
> How do you adapt this code to the new regime?
<snip>

Use an associative array for the translation table.

Or write your own functions that work in the same way as maketrans/translate.

Stewart.


More information about the Digitalmars-d-learn mailing list