Bloomberg formatting library namespace.

Types

Name

Description

EnableStreamedFormatter

Boolean trait that enables streamed formatting of a type.

FormatSpecificationParser

Mechanism for parsing Standard C++ format‐specification sections.

FormatSpecificationParserEnums

Namespace struct holding enums used for parsing.

Format_ArgUtil

Component‐private utilities for constructing format‐argument arrays.

Format_ArgsStore

Component‐private store of basic_format_arg objects.

Format_ArgsUtil

Utility functions for manipulating format argument types.

Format_ContextFactory

Utility factory for constructing basic_format_context objects.

Format_ContextOutputIteratorBase

This component‐private type is an abstract base required to type‐erase output iterators as required by the format_context and wformat_context typedefs.

Format_ContextOutputIteratorImpl

Type‐erasing holder for a concrete output iterator.

Format_ContextOutputIteratorRef

Type‐erased output‐iterator interface used by format contexts.

Format_String_TestUpdater

This is a component‐private type which enables test drivers to work around the compile‐time restrictions in basic_format_string construction.

FormatterBase_IsStdBasicString

Simple trait type that tells is t_TYPE is an instance of std::basic_string.

FormatterBase_IsStdBasicStringView

Simple trait type that tells is t_TYPE is an instance of std::basic_string_view.

FormatterBase_IsStdChronoCpp20FormattableType

Simple trait type that tells is t_TYPE is an instance of any of the C++20 standard formattable std::chrono types.

FormatterBase_IsStdChronoDuration

Simple trait type that tells is t_TYPE is an instance of std::chrono::duration.

FormatterBase_IsStdChronoFileTime

Simple trait type that tells is t_TYPE is an instance of std::chrono::file_time.

FormatterBase_IsStdChronoGpsTime

Simple trait type that tells is t_TYPE is an instance of std::chrono::gps_time.

FormatterBase_IsStdChronoHhMmSs

Simple trait type that tells is t_TYPE is an instance of std::chrono::hh_mm_ss.

FormatterBase_IsStdChronoLocalTime

Simple trait type that tells is t_TYPE is an instance of std::chrono::local_time.

FormatterBase_IsStdChronoPointInTimeType

Simple trait type that tells is t_TYPE is an instance of any of the std::chrono types that deal with points in time.

FormatterBase_IsStdChronoSysTime

Simple trait type that tells is t_TYPE is an instance of std::chrono::sys_time.

FormatterBase_IsStdChronoTaiTime

Simple trait type that tells is t_TYPE is an instance of std::chrono::tai_time.

FormatterBase_IsStdChronoTimeType

Simple trait type that tells is t_TYPE is an instance of any of std::chrono::*_time.

FormatterBase_IsStdChronoUtcTime

Simple trait type that tells is t_TYPE is an instance of std::chrono::utc_time.

FormatterBase_IsStdChronoZonedTime

Simple trait type that tells is t_TYPE is an instance of std::chrono::zoned_time.

FormatterCharUtil

Namespace for character conversion utilities used by formatters.

FormatterCharacter_CharacterOutput

This struct provides a function that outputs the specified value to the specified out.

FormatterCharacter_MakeUnsigned

Meta‐function yielding the unsigned analogue of a character type.

FormatterFloating_Base

Implementation of floating‐point formatters and specification parsing.

FormatterIntegralBase

Base class for integral and integral‐like bsl::formatter specializations.

FormatterIntegral_Category

This struct provides a function that returns a category of the formatter in accordance with the (template parameter) t_VALUE_TYPE.

FormatterPointer_Nullptr

This struct is a specialization of the bsl::formatter template for the bsl::nullptr_t.

FormatterSpecificationNumericValue

Value‐semantic type holding a category and optional integral value.

FormatterSpecificationNumericValue_ArgVisitor

Visitor that extracts an integral nested format‐argument value.

FormatterString_GraphemeCluster

[*PRIVATE*]Characterizes a Unicode grapheme cluster.

FormatterTestUtil

Namespace for test helpers that verify bslfmt formatter behavior.

FormatterTestUtil_Oracle

Namespace for standard‐library formatting oracles used in tests.

FormatterUnicodeData

[*PRIVATE*]Namespace for generated Unicode character data tables.

MockFormatContext

Format context for testing bsl::formatter specializations.

MockFormatContext_Iterator

This class template provides an output iterator to the MockFormatContext output buffer allowing appending formatted data.

MockParseContext

This class template provides an access to the format specification current parsing state.

PadUtil

This struct serves as a namespace for static functions related to padding output by bslfmt.

StandardFormatSpecification

A general mechanism to parse and validate a Standard format specification string for a given argument type.

Streamed

Formattable wrapper that uses ostream operator<< to format a type.

StreamedFormatter

This class provides the implementations of parse and format for formatters that format a type using its streaming operator.

Streamed_NoWarningConstructorTag

A component private tag type used to internally construct a Streamed object without a warning (about an already existing formatter).

TestSpecificationGenerator

Generator of exhaustive standard formatting‐specification combinations.

TestSpecificationGenerator_BoolOption

This class is an implementation of the TestSpecificationGenerator_Option for options that have only two states: they are either present or not.

TestSpecificationGenerator_Option

Base class for linked option nodes in a TestSpecificationGenerator.

TestSpecificationGenerator_TypedOption

Option node that iterates through a set of typed values.

UnicodeCodePoint

Characterizes a Unicode code point as a set of integral attributes.

basic_format_arg

Type‐erased format argument holding a value for formatting.

basic_format_args

Access to a set of type‐erased formatting arguments.

basic_format_context

A format context for use by formatter::format() partial specialization.

basic_format_parse_context

Parse context for use by formatter::parse() specializations.

basic_format_string

Type that wraps a basic_string_view for use by formatting functions.

Type Aliases

Name

Description

format_args

Alias for basic_format_args specialized on a char format context.

format_context

Alias for basic_format_context specialized on char.

format_parse_context

Alias for basic_format_parse_context specialized on char.

format_string

Alias for a checked char format string.

wformat_args

Alias for basic_format_args specialized on a wchar_t format context.

wformat_context

Alias for basic_format_context specialized on wchar_t.

wformat_parse_context

Alias for basic_format_parse_context specialized on wchar_t.

wformat_string

Alias for a checked wchar_t format string.

Functions

Name

Description

format

format overloads

format_to

format_to overloads

format_to_n

Format args per fmtStr into out, writing at most maxNumChars.

formatted_size

Return the length of the string that formatting args per fmtStr yields.

make_format_args

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.

make_wformat_args

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.

print

print overloads

println

println overloads

streamed

streamed overloads

swap

Exchange the values of the specified lhs and rhs.

vformat

vformat overloads

vformat_to

vformat_to overloads

visit_format_arg

Invoke visitor on the value contained by arg.

vprint_nonunicode

vprint_nonunicode overloads

vprint_nonunicode_buffered

Format type‐erased args per fmt into a buffer and write to stream.

vprint_unicode

vprint_unicode overloads

vprint_unicode_buffered

Format type‐erased args per fmt into a buffer and write to stream.

Using Declarations

Name

Description

format_error

Alias for std::format_error in the bsl namespace.

format_to_n_result

Alias for std::format_to_n_result in the bslfmt namespace.

Created with MrDocs