Six Handy Operations for String Processing in C++20/23 -- Bartlomiej Filipek
In this article, we’ll explore six practical string processing operations introduced in C++20 and C++23. These features represent an evolution in this crucial area, covering a spectrum of operations from searching and appending to creation and stream handling.
Six Handy Operations for String Processing in C++20/23
by Bartlomiej Filipek
From the article:
Let’s start with a simple yet long-awaited feature…
1.
contains(), C++23Finally, after decades of standardization, we have a super easy way to check if there’s one string inside the other. No need to use
.find(str) != npos!Before C++23:
And now, thanks to the proposal: P1679R3:
As you can see, the new approach with contains() is more straightforward and intuitive.



A new episode of the series about SObjectizer and message passing:
In my previous post, "

Release 1.84.0 of the Boost C++ Libraries is now available.
A new episode of the series about SObjectizer and message passing:
In this post, we’ll have fun using C++20’s spans to process data on multiple threads. What’s more, we’ll be equipped with the latest concurrency features from C++20.
We’re announcing a free early preview of CLion, which uses the ReSharper C++/Rider C++ language engine instead of the CLion "legacy" engine. The Preview build is available via our dedicated Toolbox App feed. At some point in 2024, depending on the results of the feedback collected, CLion Nova will be merged into CLion. Until then, the Preview build will be free to use and can be installed in parallel with your usual CLion (Classic) installation.