Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67764 - trunk/boost/graph
From: jewillco_at_[hidden]
Date: 2011-01-07 16:36:02


Author: jewillco
Date: 2011-01-07 16:36:01 EST (Fri, 07 Jan 2011)
New Revision: 67764
URL: http://svn.boost.org/trac/boost/changeset/67764

Log:
Changed to StringAlgo for replace operation rather than Xpressive
Text files modified:
   trunk/boost/graph/graphviz.hpp | 5 ++---
   1 files changed, 2 insertions(+), 3 deletions(-)

Modified: trunk/boost/graph/graphviz.hpp
==============================================================================
--- trunk/boost/graph/graphviz.hpp (original)
+++ trunk/boost/graph/graphviz.hpp 2011-01-07 16:36:01 EST (Fri, 07 Jan 2011)
@@ -67,9 +67,8 @@
     if (regex_match(s, valid_unquoted_id)) {
       return s;
     } else {
- // The explicit template arguments here are to disambiguate the two
- // overloads of regex_replace() on VC++ 7.1.
- return "\"" + regex_replace<std::string, std::string::const_iterator>(s, sregex(as_xpr('"')), "\\\"") + "\"";
+ boost::algorithm::replace_all(s, "\"", "\\\"");
+ return "\"" + s + "\"";
     }
   }
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk