makeTransTable

fnchar[256] makeTransTable(scope const(char)[] from, scope const(char)[] to) @safe pure nothrow @nogc

Construct 256 character translation table, where characters in from[] are replaced by corresponding characters in to[].

Parameters

fromarray of chars, less than or equal to 256 in length
tocorresponding array of chars to translate to

Returns

translation array