Private class: do not use outside of bslstl_iomanip.h header. This private class provides a temporary storage that can be extracted to/from a stream and provides data to the standard implementation of the quoted function. Note that this class does not contain the storage itself, but only points to an external object. Note that QuotedStringViewFormatter is designed so that its objects are returned as temporary objects (of opaque type) from 'bsl::quoted`, and then passed to a streaming operator; it serves as a temporary proxy for a string value.

Synopsis

Declared in <bslstl_iomanip.h>

template<
    class t_CHAR_TYPE,
    class t_CHAR_TRAITS,
    class t_ALLOC>
class IoManip_QuotedStringFormatter;

Member Functions

Name

Description

IoManip_QuotedStringFormatter [constructor]

Create an object pointing to the specified str and having the optionally specified delim and escape characters.

delim

Return the delimiter character.

escape

Return the escape character.

str

Return a reference providing modifiable access to the underlying string. Note that this operation provides modifiable access to the string because this type is designed so that its objects are created as temporary objects that proxy an underlying string (see class documentation).

Non-Member Functions

Name

Description

::bsl::quoted

Return an object, containing quoted version of the specified value obtained using the optionally specified delim and escape characters, and that can be inserted to output (or extracted from input) stream. Return an object, containing quoted version of the specified value obtained using the optionally specified delim and escape characters, and that can be inserted to output (or extracted from input) stream.

Created with MrDocs