fork download
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <sstream>
  4.  
  5. int main() {
  6. std::stringstream ss(R"(normal_text "quoted text with embded \"quote\"" normal_text)");
  7.  
  8. std::string s;
  9. while (ss >> std::quoted(s)) {
  10. std::cout << s << std::endl;
  11. }
  12. }
  13.  
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
normal_text
quoted text with embded "quote"
normal_text