3 ms·
This reminds me very strongly of Google's string::Substitute(). Super convenient, and IIRC it was faster than sprintf as well. Looks like it's now public as a
by m0zg 8y ago
This reminds me very strongly of Google's string::Substitute(). Super convenient, and IIRC it was faster than sprintf as well.
Looks like it's now public as a part of Abseil: https://github.com/abseil/abseil-cpp/blob/bf29470384a101b307873b26d358433138c857fc/absl/strings/substitute.h https://github.com/abseil/abseil-cpp/blob/bf29470384a101b307...