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")); |