|
BDE 4.39.x Production Release
|
Typedefs | |
| typedef basic_format_context< Format_ContextOutputIteratorRef< char >, char > | format_context |
| typedef basic_format_context< Format_ContextOutputIteratorRef< wchar_t >, wchar_t > | wformat_context |
| typedef basic_format_args< format_context > | format_args |
| typedef basic_format_args< wformat_context > | wformat_args |
| typedef basic_format_string< char > | format_string |
| typedef basic_format_string< wchar_t > | wformat_string |
| typedef basic_format_parse_context< char > | format_parse_context |
| typedef basic_format_parse_context< wchar_t > | wformat_parse_context |
Functions | |
| template<class t_VISITOR , class t_CONTEXT > | |
| bsl::invoke_result< t_VISITOR &, bsl::monostate & >::type | visit_format_arg (t_VISITOR &visitor, basic_format_arg< t_CONTEXT > arg) |
| template<class... t_ARGS> | |
| Format_ArgsStore< format_context, t_ARGS... > | make_format_args (t_ARGS &... fmt_args) |
| template<class... t_ARGS> | |
| Format_ArgsStore< wformat_context, t_ARGS... > | make_wformat_args (t_ARGS &... fmt_args) |
| template<class t_OUT > | |
| t_OUT | vformat_to (t_OUT out, bsl::string_view fmtStr, format_args args) |
| template<class t_OUT > | |
| t_OUT | vformat_to (t_OUT out, bsl::wstring_view fmtStr, wformat_args args) |
| void | vformat_to (bsl::string *out, bsl::string_view fmtStr, format_args args) |
| void | vformat_to (bsl::wstring *out, bsl::wstring_view fmtStr, wformat_args args) |
| bsl::string | vformat (bsl::string_view fmt, format_args args) |
| bsl::wstring | vformat (bsl::wstring_view fmtStr, wformat_args args) |
| bsl::string | vformat (bsl::allocator< char > alloc, bsl::string_view fmtStr, format_args args) |
| bsl::wstring | vformat (bsl::allocator< wchar_t > alloc, bsl::wstring_view fmtStr, wformat_args args) |
| template<class t_OUT , class... t_ARGS> | |
| bsl::enable_if<!bsl::is_same< typenamebsl::decay< t_OUT >::type, bsl::string * >::value, t_OUT >::type | format_to (t_OUT out, BSLFMT_FORMAT_STRING_PARAMETER fmtStr, const t_ARGS &... args) |
| template<class t_OUT , class... t_ARGS> | |
| bsl::enable_if<!bsl::is_same< typenamebsl::decay< t_OUT >::type, bsl::wstring * >::value, t_OUT >::type | format_to (t_OUT out, BSLFMT_FORMAT_WSTRING_PARAMETER fmtStr, const t_ARGS &... args) |
| template<class... t_ARGS> | |
| void | format_to (bsl::string *out, BSLFMT_FORMAT_STRING_PARAMETER fmtStr, const t_ARGS &... args) |
| template<class... t_ARGS> | |
| void | format_to (bsl::wstring *out, BSLFMT_FORMAT_WSTRING_PARAMETER fmtStr, const t_ARGS &... args) |
| template<class... t_ARGS> | |
| bsl::string | format (BSLFMT_FORMAT_STRING_PARAMETER fmtStr, const t_ARGS &... args) |
| template<class... t_ARGS> | |
| bsl::wstring | format (BSLFMT_FORMAT_WSTRING_PARAMETER fmtStr, const t_ARGS &... args) |
| template<class... t_ARGS> | |
| bsl::string | format (bsl::allocator< char > alloc, BSLFMT_FORMAT_STRING_PARAMETER fmtStr, const t_ARGS &... args) |
| template<class... t_ARGS> | |
| bsl::wstring | format (bsl::allocator< wchar_t > alloc, BSLFMT_FORMAT_WSTRING_PARAMETER fmtStr, const t_ARGS &... args) |
| template<class... t_ARGS> | |
| std::size_t | formatted_size (BSLFMT_FORMAT_STRING_PARAMETER fmtStr, const t_ARGS &... args) |
| template<class... t_ARGS> | |
| std::size_t | formatted_size (BSLFMT_FORMAT_WSTRING_PARAMETER fmtStr, const t_ARGS &... args) |
| template<class t_OUT , class... t_ARGS> | |
| format_to_n_result< t_OUT > | format_to_n (t_OUT out, typename bsl::iterator_traits< t_OUT >::difference_type maxNumChars, BSLFMT_FORMAT_STRING_PARAMETER fmtStr, const t_ARGS &... args) |
| template<class t_OUT , class... t_ARGS> | |
| format_to_n_result< t_OUT > | format_to_n (t_OUT out, typename bsl::iterator_traits< t_OUT >::difference_type maxNumChars, BSLFMT_FORMAT_WSTRING_PARAMETER fmtStr, const t_ARGS &... args) |
| template<class... t_ARGS> | |
| void | print (BSLFMT_FORMAT_STRING_PARAMETER fmt, t_ARGS &&... args) |
| template<class... t_ARGS> | |
| void | print (std::FILE *stream, BSLFMT_FORMAT_STRING_PARAMETER fmt, t_ARGS &&... args) |
| template<class... t_ARGS> | |
| void | println (BSLFMT_FORMAT_STRING_PARAMETER fmt, t_ARGS &&... args) |
| template<class... t_ARGS> | |
| void | println (std::FILE *stream, BSLFMT_FORMAT_STRING_PARAMETER fmt, t_ARGS &&... args) |
| void | println () |
| void | println (std::FILE *stream) |
| void | vprint_nonunicode (bsl::string_view fmt, bsl::format_args args) |
| void | vprint_nonunicode (std::FILE *stream, bsl::string_view fmt, bsl::format_args args) |
| void | vprint_nonunicode_buffered (std::FILE *stream, bsl::string_view fmt, bsl::format_args args) |
| void | vprint_unicode (bsl::string_view fmt, bsl::format_args args) |
| void | vprint_unicode (std::FILE *stream, bsl::string_view fmt, bsl::format_args args) |
| void | vprint_unicode_buffered (std::FILE *stream, bsl::string_view fmt, bsl::format_args args) |
| void | Print_Imp_ThrowIoError () |
| template<class... t_ARGS> | |
| void | print (std::ostream &stream, BSLFMT_FORMAT_STRING_PARAMETER fmt, t_ARGS &&... args) |
| template<class... t_ARGS> | |
| void | println (std::ostream &stream, BSLFMT_FORMAT_STRING_PARAMETER fmt, t_ARGS &&... args) |
| void | println (std::ostream &stream) |
| void | vprint_nonunicode (std::ostream &stream, bsl::string_view fmt, bsl::format_args args) |
| void | vprint_unicode (std::ostream &stream, bsl::string_view fmt, bsl::format_args args) |
| template<class t_STREAMABLE > | |
| Streamed< t_STREAMABLE > | streamed (const t_STREAMABLE &object) |
| typedef basic_format_context< Format_ContextOutputIteratorRef< char >, char > bslfmt::format_context |
| typedef basic_format_parse_context<char> bslfmt::format_parse_context |
| typedef basic_format_string<char> bslfmt::format_string |
| typedef basic_format_context< Format_ContextOutputIteratorRef< wchar_t >, wchar_t > bslfmt::wformat_context |
| typedef basic_format_parse_context<wchar_t> bslfmt::wformat_parse_context |
| typedef basic_format_string<wchar_t> bslfmt::wformat_string |
|
inline |
Format the specified args according to the specification given by the specified fmtStr, using the specified alloc to supply memory (if required), and return the result. In the event of an error the exception format_error is thrown.
|
inline |
Format the specified args according to the specification given by the specified fmtStr, using the specified alloc to supply memory (if required), and return the result. In the event of an error the exception format_error is thrown.
|
inline |
Format the specified args according to the specification given by the specified fmtStr and return the result as a bsl::string. In the event of an error the exception format_error is thrown.
|
inline |
Format the specified args according to the specification given by the specified fmtStr and return the result as a bsl::string. In the event of an error the exception format_error is thrown.
|
inline |
Format the specified args according to the specification given by the specified fmtStr, and write the result of this operation into the string addressed by the specified out parameter. In the event of an error the exception format_error is thrown. Behavior is undefined if out does not point to a valid bsl::string object.
|
inline |
Format the specified args according to the specification given by the specified fmtStr, and write the result of this operation into the string addressed by the specified out parameter. In the event of an error the exception format_error is thrown. Behavior is undefined if out does not point to a valid bsl::string object.
|
inline |
Format the specified args according to the specification given by the specified fmtStr, and write the result of this operation into the output iterator given by the specified out parameter. In the event of an error the exception format_error is thrown. Behavior is undefined if out does not point to a valid output parameter.
|
inline |
Format the specified args according to the specification given by the specified fmtStr, and write the result of this operation into the output iterator given by the specified out parameter. In the event of an error the exception format_error is thrown. Behavior is undefined if out does not point to a valid output parameter.
|
inline |
Format the specified args according to the specification given by the specified fmtStr, and write at most the specified maxNumChars characters of the result of this operation into the output iterator referenced by the specified out parameter. Return a format_to_n_result object whose size member holds the number of characters that would have been written to out were such writing not truncated, and whose out member holds an iterator one past the end of the output range. In the event of an error the exception format_error is thrown. Behavior is undefined if out does not point to a valid output iterator.
|
inline |
Format the specified args according to the specification given by the specified fmtStr, and write at most the specified maxNumChars characters of the result of this operation into the output iterator referenced by the specified out parameter. Return a format_to_n_result object whose size member holds the number of characters that would have been written to out were such writing not truncated, and whose out member holds an iterator one past the end of the output range. In the event of an error the exception format_error is thrown. Behavior is undefined if out does not point to a valid output iterator.
|
inline |
Calculate the length of the resulting string if the specified args were to be formatted according to the specification given by the specified fmtStr, and return the result.
|
inline |
Calculate the length of the resulting string if the specified args were to be formatted according to the specification given by the specified fmtStr, and return the result.
|
inline |
From the specified fmt_args return a type convertible to format_arg_store that is suitable for use by the char-based bslfmt::format functions.
|
inline |
From the specified fmt_args return a type convertible to format_arg_store that is suitable for use by the wchar_t-based bslfmt::format functions.
|
inline |
Format the specified args using bsl::format_to according to the specification given by the specified fmt, and write the result of this operation to stdout. In the event of formatting error throw the exception format_error , in the event of I/O error throw the exception system_error , on allocation failure throw bad_alloc .
|
inline |
Format the specified args using bsl::format_to according to the specification given by the specified fmt, and write the result of this operation to the specified stream. In the event of formatting error throw the exception format_error , in the event of I/O error throw the exception system_error , on allocation failure throw bad_alloc .
stream is a valid pointer to an output C stream.
|
inline |
Format the specified args using bsl::format_to according to the specification given by the specified fmt, and write the result of this operation to the specified stream. In the event of formatting error throw the exception format_error , in the event of I/O error throw the exception system_error , on allocation failure throw bad_alloc .
stream is a valid pointer to an output C stream. | void bslfmt::Print_Imp_ThrowIoError | ( | ) |
Throw system_error with errc::io_error.
|
inline |
Write \n into stdout.
|
inline |
Format the specified args using bsl::format_to according to the specification given by the specified fmt, append \n, and write the result of this operation to stdout. In the event of formatting error throw the exception format_error , in the event of I/O error throw the exception system_error , on allocation failure throw bad_alloc .
| void bslfmt::println | ( | std::FILE * | stream | ) |
Write \n to the specified stream.
stream is a valid pointer to an output C stream.
|
inline |
Format the specified args using bsl::format_to according to the specification given by the specified fmt, append \n, and write the result of this operation to the specified stream. In the event of formatting error throw the exception format_error , in the event of I/O error throw the exception system_error , on allocation failure throw bad_alloc.
stream is a valid pointer to an output C stream.
|
inline |
Write \n to the specified stream.
stream is a valid pointer to an output C stream.
|
inline |
Format the specified args using bsl::format_to according to the specification given by the specified fmt, append \n, and write the result of this operation to the specified stream. In the event of formatting error throw the exception format_error , in the event of I/O error throw the exception system_error , on allocation failure throw bad_alloc.
stream is a valid pointer to an output C stream. | Streamed< t_STREAMABLE > bslfmt::streamed | ( | const t_STREAMABLE & | object | ) |
|
inline |
Format the specified args according to the specification given by the specified fmtStr, using the specified allocator to supply memory (if required), and return the result. In the event of an error the exception format_error is thrown.
|
inline |
Format the specified args according to the specification given by the specified fmtStr, using the specified allocator to supply memory (if required), and return the result. In the event of an error the exception format_error is thrown.
|
inline |
Format the specified args according to the specification given by the specified fmt and return the result. In the event of an error the exception format_error is thrown.
|
inline |
Format the specified args according to the specification given by the specified fmtStr and return the result. In the event of an error the exception format_error is thrown.
|
inline |
Format the specified args according to the specification given by the specified fmtStr, and write the result of this operation into the string addressed by the specified out parameter. In the event of an error the exception format_error is thrown. Behavior is undefined if out does not point to a valid bsl::string object.
|
inline |
Format the specified args according to the specification given by the specified fmtStr, and write the result of this operation into the string addressed by the specified out parameter. In the event of an error the exception format_error is thrown. Behavior is undefined if out does not point to a valid bsl::string object.
|
inline |
Format the specified args according to the specification given by the specified fmtStr, and write the result of this operation into the output iterator given by the specified out parameter. In the event of an error the exception format_error is thrown. Behavior is undefined if out is not a valid output iterator.
|
inline |
Format the specified args according to the specification given by the specified fmtStr, and write the result of this operation into the output iterator given by the specified out parameter. In the event of an error the exception format_error is thrown. Behavior is undefined if out is not a valid output iterator.
|
inline |
Invoke the specified visitor functor on the value contained by the specified arg, providing that functor non-modifiable access to that value. visitor must be a variant-style functor that is able to visit all supported types listed in the {DESCRIPTION}.
|
inline |
Format the specified args using bsl::vformat_to according to the specification given by the specified fmt, and write the result of this operation to stdout. In the event of formatting error throw the exception format_error , in the event of I/O error throw the exception system_error , on allocation failure throw bad_alloc .
| void bslfmt::vprint_nonunicode | ( | std::FILE * | stream, |
| bsl::string_view | fmt, | ||
| bsl::format_args | args | ||
| ) |
Format the specified args using bsl::vformat_to according to the specification given by the specified fmt, and write the result of this operation to the specified stream. In the event of formatting error throw the exception format_error , in the event of I/O error throw the exception system_error , on allocation failure throw bad_alloc .
stream is a valid pointer to an output C stream. | void bslfmt::vprint_nonunicode | ( | std::ostream & | stream, |
| bsl::string_view | fmt, | ||
| bsl::format_args | args | ||
| ) |
Format the specified args using bsl::vformat_to according to the specification given by the specified fmt, and write the result of this operation to the specified stream. In the event of formatting error throw the exception format_error , in the event of I/O error throw the exception system_error , on allocation failure throw bad_alloc .
stream is a valid pointer to an output C stream. | void bslfmt::vprint_nonunicode_buffered | ( | std::FILE * | stream, |
| bsl::string_view | fmt, | ||
| bsl::format_args | args | ||
| ) |
Format the specified args using bsl::vformat_to according to the specification given by the specified fmt to a temporary buffer, and write the resulting buffer to the specified stream. In the event of formatting error throw the exception format_error , in the event of I/O error throw the exception system_error , on allocation failure throw bad_alloc .
stream is a valid pointer to an output C stream.
|
inline |
Format the specified args using bsl::vformat_to according to the specification given by the specified fmt, and write the result of this operation to stdout. In the event of formatting error throw the exception format_error , in the event of I/O error throw the exception system_error , on allocation failure throw bad_alloc .
| void bslfmt::vprint_unicode | ( | std::FILE * | stream, |
| bsl::string_view | fmt, | ||
| bsl::format_args | args | ||
| ) |
Format the specified args using bsl::vformat_to according to the specification given by the specified fmt, and write the result of this operation to the specified stream. In the event of formatting error throw the exception format_error , in the event of I/O error throw the exception system_error , on allocation failure throw bad_alloc .
stream is a valid pointer to an output C stream. | void bslfmt::vprint_unicode | ( | std::ostream & | stream, |
| bsl::string_view | fmt, | ||
| bsl::format_args | args | ||
| ) |
Format the specified args using bsl::vformat_to according to the specification given by the specified fmt, and write the result of this operation to the specified stream. In the event of formatting error throw the exception format_error , in the event of I/O error throw the exception system_error , on allocation failure throw bad_alloc .
stream is a valid pointer to an output C stream. | void bslfmt::vprint_unicode_buffered | ( | std::FILE * | stream, |
| bsl::string_view | fmt, | ||
| bsl::format_args | args | ||
| ) |
Format the specified args using bsl::vformat_to according to the specification given by the specified fmt to a temporary buffer, and write the resulting buffer to the specified stream. In the event of formatting error throw the exception format_error , in the event of I/O error throw the exception system_error , on allocation failure throw bad_alloc .
stream is a valid pointer to an output C stream.