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 243 by Douglas Thrift, 2004-09-11T21:27:10-07:00 vs.
Revision 255 by Douglas Thrift, 2004-09-15T21:38:10-07:00

# Line 15 | Line 15 | extern "C"
15   #include <fts.h>
16   }
17  
18 < #include <menes-api/exename.hpp>
19 < #include <menes-app/application.hpp>
20 <
21 < struct FeepingCreaturismCommand : public app::Application
18 > int main(int argc, char* argv[])
19   {
20 <        virtual int Run(const app::ArgumentList& args)
24 <        {
25 <                FeepingCreaturism::program = api::GetExecutableName();
20 >        FeepingCreaturism::program = argv[0];
21  
22 <                FeepingCreaturism creaturism;
22 >        FeepingCreaturism creaturism;
23  
24 <                return 0;
25 <        }
31 < } creaturism;
24 >        return 0;
25 > }
26  
27   FeepingCreaturism::FeepingCreaturism()
28   {
# Line 68 | 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  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines