All Text and Formatting Facilities
All Text and Formatting Facilities
A compact scan page for strings, string views, char conversion, formatting, printing, regex, streams, and locale-adjacent text facilities.
All Text and Formatting Facilities
A compact scan page for strings, string views, char conversion, formatting, printing, regex, streams, and locale-adjacent text facilities.
Use reference pages to confirm names, categories, nearby facilities, and the constraints that matter before writing or reviewing code.
std::stringstd::wstringstd::u8string, std::u16string, std::u32stringstd::string_viewstd::formatstd::vformatstd::printstd::printlnstd::to_charsstd::from_charsstd::chars_formatstd::regex, std::regex_match, std::regex_search, std::regex_replacestd::string_view for borrowed read-only text parameters.<charconv> for fast low-level numeric parsing and formatting.<format> or <print> when readability matters more than ad hoc stream chains.#include <format>
int main() {
auto line = std::format("answer = {}", 42);
return static_cast<int>(line.size());
}