void translateImpl(C1, T, C2, Buffer)(const(C1)[] str, scope T transTable, const(C2)[] toRemove, Buffer buffer)