ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/FeepingCreaturism/Jargon.cpp
(Generate patch)

Comparing FeepingCreaturism/Jargon.cpp (file contents):
Revision 227 by Douglas Thrift, 2004-09-06T13:23:39-07:00 vs.
Revision 254 by Douglas Thrift, 2004-09-14T17:42:21-07:00

# Line 7 | Line 7
7   #include "Jargon.hpp"
8   #include "Matcher.hpp"
9  
10 < Jargon::Jargon(const ext::String& path, bool include,
10 > Jargon::Jargon(const ext::String& path, const ext::String& jargon, bool include,
11          const ext::String& relative) : include(include),
12          args(1, FeepingCreaturism::program)
13   {
14 +        args.push_back("-m");
15 +        args.push_back("-p");
16 +        args.push_back("jargon");
17 +        args.push_back("\"" + jargon + "\"");
18          args.push_back("-p");
19          args.push_back("include");
20          args.push_back(lexical_cast<ext::String>(include) + "()");
# Line 22 | Line 26 | Jargon::Jargon(const ext::String& path,
26                  args.push_back("\"" + relative + "\"");
27          }
28  
29 <        args.push_back(path);
29 >        args.push_back(path + "/" + jargon);
30          args.push_back("jargon.xsl");
31   }
32  
# Line 43 | Line 47 | ios::PrintWriter& operator<<(ios::PrintW
47  
48                  std::getline(pin, line);
49  
50 <                pout << line << '\n';
50 >                while (jargon.include && line.find(" xmlns=") != std::string::npos)
51 >                {
52 >                        std::string::size_type position(line.find(" xmlns="));
53 >
54 >                        line.replace(position, 37, "");
55 >                }
56 >
57 >                pout << line << "\n";
58          }
59          while (pin.good());
60  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines