diff --git a/doc/quoted_manip.html b/doc/quoted_manip.html index 4391941..9cd0b37 100644 --- a/doc/quoted_manip.html +++ b/doc/quoted_manip.html @@ -4,7 +4,7 @@ - Boost quoted string manipulator + Boost "quoted" I/O manipulator @@ -19,9 +19,9 @@ style="border-collapse: collapse"> src="../../../boost.png" alt="boost.png (6897 bytes)" align="middle" width="300" height="86" border="0" /> -

Quoted String
- Stream - I/O Manipulator

+

"Quoted" + I/O Manipulator
+ for Strings

@@ -43,7 +43,7 @@ std::cout << round_trip; // outputs: fooled assert(original == round_trip); // assert will fire -

The Boost quoted string stream I/O manipulator places delimiters, defaulted +

The Boost quoted stream I/O manipulator places delimiters, defaulted to the double-quote ("), around strings on output, and strips off the delimiters on input. This ensures strings with embedded spaces round-trip as desired. For example,

@@ -60,6 +60,11 @@ std::cout << round_trip; // outputs: fooled you assert(original == round_trip); // assert will not fire +

If the string contains the delimiter character, on output that character will +be preceded by an escape character, as will the escape character itself:

+
+
std::cout << quoted("'Jack & Jill'", '&', '\'');  // outputs: '&'Jack && Jill&''
+

Header <boost/io/quoted_manip.hpp> synopsis

namespace boost
 {
@@ -113,7 +118,8 @@ type with an implementation supplied operator>>:

operator==, then: