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 205 by Douglas Thrift, 2004-09-01T02:10:19-07:00 vs.
Revision 206 by Douglas Thrift, 2004-09-01T03:36:00-07:00

# Line 49 | Line 49 | FeepingCreaturism::FeepingCreaturism()
49  
50   ext::String FeepingCreaturism::program;
51  
52 + bool FeepingCreaturism::CaseLess::operator()(const std::string& one,
53 +        const std::string& two)
54 + {
55 +        std::string one_(one), two_(two);
56 +
57 +        // XXX: should be std::tolower except g++34 doesn't believe it
58 +        std::transform(one.begin(), one.end(), one_.begin(), ::tolower);
59 +        std::transform(two.begin(), two.end(), two_.begin(), ::tolower);
60 +
61 +        return one_ < two_;
62 + }
63 +
64   void FeepingCreaturism::initialize()
65   {
66          ext::Handle<xml::Document> document(xml::Parse("jargon.xml"));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines