2 |
|
// |
3 |
|
// Douglas Thrift |
4 |
|
// |
5 |
< |
// $Id: IndividualClient.h,v 1.6 2003/09/02 06:05:56 douglas Exp $ |
5 |
> |
// $Id: IndividualClient.h,v 1.7 2003/09/03 03:40:35 douglas Exp $ |
6 |
|
|
7 |
|
#ifndef _IndividualClient_h_ |
8 |
|
#define _IndividualClient_h_ |
16 |
|
string name; |
17 |
|
string file; |
18 |
|
static string extension; |
19 |
< |
void lowercase(string& word) { for (unsigned index = 0; index < |
20 |
< |
word.length(); index++) word[index] = tolower(word[index]); } |
19 |
> |
void lowercase(string& word) { word = toLower(word); } |
20 |
|
void demunge(void); |
21 |
|
string demunge(const string& munged); |
22 |
|
void capitalize(string& word, unsigned index = 0, unsigned count = 1); |
52 |
|
} |
53 |
|
} |
54 |
|
|
55 |
< |
return first < second; |
55 |
> |
return toLower(first) < toLower(second); |
56 |
|
} |
57 |
|
inline bool mcGreater(const string& first, const string& second) |
58 |
|
{ |
68 |
|
} |
69 |
|
} |
70 |
|
|
71 |
< |
return first > second; |
71 |
> |
return toLower(first) > toLower(second); |
72 |
|
} |
73 |
|
|
74 |
|
#endif // _IndividualClient_h_ |