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

Comparing FeepingCreaturism/FeepingCreaturism.cpp (file contents):
Revision 225 by Douglas Thrift, 2004-09-06T04:03:48-07:00 vs.
Revision 255 by Douglas Thrift, 2004-09-15T21:38:10-07:00

# Line 62 | Line 62 | bool FeepingCreaturism::CaseLess::operat
62          std::transform(one.begin(), one.end(), one_.begin(), ::tolower);
63          std::transform(two.begin(), two.end(), two_.begin(), ::tolower);
64  
65 +        if (one_ == two_) return one < two;
66 +
67          return one_ < two_;
68   }
69  
# Line 73 | Line 75 | void FeepingCreaturism::initialize()
75          this->path = *node/"jargon";
76          this->matcher = *node/"matcher";
77  
78 <        char* path[] = { new char[this->path.size()] };
78 >        char* path[] = { new char[this->path.GetData().GetSize()] };
79  
80 <        std::strcpy(path[0], this->path.c_str());
80 >        std::strcpy(path[0], this->path.NullTerminate());
81  
82          ::FTS* traversal(::fts_open(path, FTS_LOGICAL, NULL));
83          Matcher matcher("^" + this->path + "/(" + this->matcher + ")$");
# Line 171 | Line 173 | void FeepingCreaturism::select(const ext
173          {
174                  api::Cout << "Content-Type: text/html; charset=UTF-8\r\n\r\n";
175  
176 <                Jargon jargon(path + "/" + selection, cgi.find("include") != cgi.end()
177 <                        ? lexical_cast<bool>(ext::String(cgi.find("include")->second))
178 <                        : false, cgi.find("relative") != cgi.end()
179 <                        ? cgi.find("relative")->second : "");
176 >                Jargon jargon(path, selection, cgi.find("include") != cgi.end()
177 >                        && lexical_cast<bool>(ext::String(cgi.find("include")->second)),
178 >                        cgi.find("relative") != cgi.end()
179 >                        ? ext::String(cgi.find("relative")->second) : ext::String());
180  
181                  api::Cout << jargon;
182          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines