This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Greetings, This patch implements quoted string manipulators for C++14. 27.7.6 - Quoted manipulators [quoted.manip]. The idea is to allow round trip insert and extract of strings with spaces. std::stringstream ss; std::string original = "thing1 thing1"; std::string round_trip; ss << std::quoted(original); ss >> std::quoted(round_trip); assert( original == round_trip ); Builds and tests clean on x86-64-linux. Ed Smith-Rowland
Attachment:
CL_quoted
Description: Text document
Attachment:
patch_quoted
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |