Changeset 2558
- Timestamp:
- 2001-06-15T15:29:54+12:00 (23 years ago)
- Location:
- trunk/gsdl/src/recpt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/collectoraction.cpp
r2543 r2558 1557 1557 options += " -about \"" + carriage_replace (args["bc1aboutdesc"] + "_collectorextra_", 0) + "\""; 1558 1558 options += " -collectdir \"" + tmpdir + "\" "; 1559 1560 // escape any backslashes in options with a second backslash 1561 escape_slashes(options); 1562 1559 1563 text_t optionfile = filename_cat (tmpdir, "mkcol.opt"); 1560 1564 char *optionfilec = optionfile.getcstr(); … … 1681 1685 options += " -event_header " + ehead_file; 1682 1686 } 1687 1688 // escape any backslashes in options with a second backslash 1689 escape_slashes(options); 1683 1690 1684 1691 text_t optionfile = filename_cat (tmpdir, "build.opt"); … … 1928 1935 return url; 1929 1936 } 1937 1938 void collectoraction::escape_slashes (text_t &oldval) { 1939 text_t newval; 1940 text_t::const_iterator here = oldval.begin(); 1941 text_t::const_iterator end = oldval.end(); 1942 while (here != end) { 1943 if (*here == '\\') newval.push_back('\\'); 1944 newval.push_back(*here); 1945 here ++; 1946 } 1947 oldval = newval; 1948 } -
trunk/gsdl/src/recpt/collectoraction.h
r2518 r2558 101 101 text_t format_url (const text_t &url); 102 102 103 void escape_slashes (text_t &oldval); 104 103 105 public: 104 106 collectoraction ();
Note:
See TracChangeset
for help on using the changeset viewer.