Hacker News with Generative AI: String Manipulation

C++ String Conversion: Exploring std:from_chars in C++17 to C++26 (cppstories.com)
With the introduction of C++17, the C++ Standard Library expanded its capabilities for converting text to numbers with the addition of std::from_chars. This low-level, high-performance API offers significant advantages over previous methods, such as atoi and stringstream. In this article, we will explore the evolution of string conversion routines from C++17 through C++26, highlighting key improvements like constexpr support and enhanced error handling. Let’s dive into the details and see how std::from_chars can transform your approach to string conversion.
A popular but wrong way to convert a string to uppercase or lowercase (microsoft.com)
It seems that a popular way of converting a string to uppercase or lowercase is to do it letter by letter.
tolower() small string performance (dotat.at)
When processing very small string fragments, what is the cross-over point between scalar code and AVX-512 with masked loads and stores?
Small Strings in Rust: smolstr vs. smartstring (2020) (fasterthanli.me)
Java String.format vs. MessageFormat (igorstechnoclub.com)
Effective substring in Rust (letmutex.com)
How to chop off bytes of an UTF-8 string to fit into a small slot and look nice (plix.at)
Arenas and the almighty concatenation operator (nullprogram.com)
An informal comparison of the three major implementations of std:string (microsoft.com)
Python Gotcha: strip, lstrip, rstrip can remove more than expected (andrewwegner.com)
Fastest way to get IPv4 address from string (2015) (stackoverflow.com)