Localization library | |||||||||||||||||||||||||
Regular expressions library(C++11) | |||||||||||||||||||||||||
Formatting library(C++20) | |||||||||||||||||||||||||
Null-terminated sequence utilities | |||||||||||||||||||||||||
Byte strings | |||||||||||||||||||||||||
Multibyte strings | |||||||||||||||||||||||||
Wide strings | |||||||||||||||||||||||||
Primitive numeric conversions | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Text encoding identifications | |||||||||||||||||||||||||
|
The text processing library includes components for dealing with text.
Contents |
The headers<locale> and<clocale> provide internationalization support for character classification and string collation, numeric, monetary, and date/time formatting and parsing, and message retrieval.
The header<regex> provides a class that representsregular expressions, which are a kind of mini-language used to perform pattern matching within strings.
The header<format> provides facilities for type-safe and extensible string formatting that is an alternative to theprintf
family of functions, and intended to complement the existing C++ I/O streams library.
Null-terminated character sequences (NTCTS) are sequences of characters that are terminated by a null character (the value aftervalue-initialization).
The strings library provides functions to create, inspect, and modify such sequences:
In addition to sophisticated locale-dependent parsers and formatters provided by theC++ I/O library, theC I/O library,C++ string converters, andC string converters, the header<charconv> provides light-weight, locale-independent, non-allocating, non-throwing parsers and formatters for arithmetic types.
Defined in header <charconv> | |
(C++17) | converts an integer or floating-point value to a character sequence (function)[edit] |
(C++17) | the return type ofstd::to_chars (class)[edit] |
(C++17) | converts a character sequence to an integer or floating-point value (function)[edit] |
(C++17) | the return type ofstd::from_chars (class)[edit] |
(C++17) | specifies formatting forstd::to_chars andstd::from_chars (enum)[edit] |
Defined in header <text_encoding> | |
(C++26) | describes an interface for accessing theIANA Character Sets registry (class)[edit] |
C++ documentation forStrings library |