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 228 by Douglas Thrift, 2004-09-06T13:23:39-07:00 vs.
Revision 229 by Douglas Thrift, 2004-09-06T16:50:13-07:00

# Line 11 | Line 11 | Jargon::Jargon(const ext::String& path,
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("include");
17          args.push_back(lexical_cast<ext::String>(include) + "()");
# Line 43 | Line 44 | ios::PrintWriter& operator<<(ios::PrintW
44  
45                  std::getline(pin, line);
46  
47 +                while (jargon.include && line.find(" xmlns=") != std::string::npos)
48 +                {
49 +                        std::string::size_type position(line.find(" xmlns="));
50 +
51 +                        line.replace(position, 37, "");
52 +                }
53 +
54                  pout << line << '\n';
55          }
56          while (pin.good());

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines