bsl::quoted

Return a streamable object that quotes the specified value.

Synopses

Declared in <bslstl_iomanip.h>

Return a streamable object that quotes the specified value.

template<
    class t_CHAR_TYPE,
    class t_CHAR_TRAITS,
    class t_ALLOC>
BloombergLP::bslstl::IoManip_QuotedStringFormatter<t_CHAR_TYPE, t_CHAR_TRAITS, t_ALLOC>
quoted(
    bsl::basic_string<t_CHAR_TYPE, t_CHAR_TRAITS, t_ALLOC>& value,
    t_CHAR_TYPE delim = t_CHAR_TYPE('"'),
    t_CHAR_TYPE escape = t_CHAR_TYPE('\\'));
» more...

Return a streamable object that quotes the specified value.

template<
    class t_CHAR_TYPE,
    class t_CHAR_TRAITS,
    class t_ALLOC>
decltype(auto)
quoted(
    bsl::basic_string<t_CHAR_TYPE, t_CHAR_TRAITS, t_ALLOC> const& value,
    t_CHAR_TYPE delim = t_CHAR_TYPE('"'),
    t_CHAR_TYPE escape = t_CHAR_TYPE('\\'));
» more...

Return Value

  • streamable object that quotes value for insertion or extraction
  • streamable object that quotes value for insertion into a stream

Parameters

NameDescription
valuestring to quote
delimdelimiter character surrounding the quoted string
escapeescape character used within the quoted string