add c++14 constexpr version: transform, replace