You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
String formatting overhaul: Parsing of std::format strings
C++20 adds std::format to the STL as a type-safe and more flexible
alternative to printf and IO streams. fly::BasicString::format was also
an alternative, but used a very tiny subset of printf-styled formatting
strings.
This adds (nearly) fully compliant parsing of the new std::format style
of strings. This style is not used by BasicString yet. Unsupported
features include nested replacement fields and a type analogous to
std::formatter (rather, the ostream<< operator is still used).
Unlike std::format, this implementation supports all character types
(not just char- and wchar_t-based strings). This implementation also
supports full validation of the format string at compile time with
compilers that support consteval. Other compilers will drop invalid
format strings at runtime.
0 commit comments