C++20 Formatting Library: Part-6 Characters and Strings

Gajendra Gulgulia
4 min readMar 12, 2023

In the fourth part and fifth part of the tutorial series on C++20 formatting library, the major focus was on formatting numbers. This part of the series will discuss majorly on how characters and strings can be formatted using the new formatting library.

Formatting strings with the formatting library is practically quite straight forward. Basically all the format specifier rules discussed so with basic arithmetic types except forsign applies to strings as well.

--

--