C++ gems: Difference between revisions

From Thought dump
Jump to navigation Jump to search
std::quote
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 6: Line 6:
  /*unspecified*/ quoted( std::basic_string_view<CharT, Traits> s,
  /*unspecified*/ quoted( std::basic_string_view<CharT, Traits> s,
                          CharT delim = CharT('"'), CharT escape = CharT('\\') );
                          CharT delim = CharT('"'), CharT escape = CharT('\\') );
{{Page lang|en}}
[[Category:C++]]
[[Category:Notes]]

Latest revision as of 03:19, 26 August 2024

String (un)quoting in standard library

See cppreference.com: std::quoted

#include <iomanip>

template< class CharT, class Traits>
/*unspecified*/ quoted( std::basic_string_view<CharT, Traits> s,
                        CharT delim = CharT('"'), CharT escape = CharT('\\') );