Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

shellext: remove unused class less_nocase

Changeset 63ea114b727f

Parent e0c441226211

by Adrian Buehlmann

Changes to one file · Browse files at 63ea114b727f Showing diff from parent e0c441226211 Diff from another changeset...

 
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
 
69
70
71
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
73
@@ -69,27 +69,5 @@
 std::string SerializeStringVector(const std::vector<std::string>& vStrings,   const std::string& sDelimiter);   -// comparison function object -class less_nocase -{ -public: - bool operator()(const std::string& x, const std::string& y) const - { - std::string::const_iterator p = x.begin(); - std::string::const_iterator q = y.begin(); - - while (p != x.end() && q != y.end() && toupper(*p) == toupper(*q)) - ++p, ++q; - - if (p == x.end()) // Reached end of x: Return true if y is longer than x - return q != y.end(); - - if (q == y.end()) // Reached end of y, but not x, so x is longer than y - return false; - - return toupper(*p) < toupper(*q); - } -}; -    #endif