fork(1) download
  1. // Example program
  2. #include <iostream>
  3. #include <string>
  4. #include <algorithm>
  5. #include <boost/algorithm/string/replace.hpp>
  6.  
  7. int main()
  8. {
  9. std::string msg("\"\"Date\"\":1481200838,\"\"Message\"\":\"");
  10. std::cout <<"org : "<< msg << std::endl;
  11. boost::replace_all(msg, "\"\"", "\"");
  12. std::cout <<"final : "<< msg << std::endl;
  13. }
Success #stdin #stdout 0s 3480KB
stdin
Standard input is empty
stdout
org : ""Date"":1481200838,""Message"":"
final : "Date":1481200838,"Message":"