2 |
|
// |
3 |
|
// Douglas Thrift |
4 |
|
// |
5 |
< |
// $Id: IndividualClient.cxx,v 1.4 2003/08/18 22:25:29 douglas Exp $ |
5 |
> |
// $Id: IndividualClient.cxx,v 1.5 2003/08/20 05:49:34 douglas Exp $ |
6 |
|
|
7 |
|
#include "IndividualClient.h" |
8 |
|
|
59 |
|
} |
60 |
|
while (name.good()); |
61 |
|
|
62 |
< |
this->file = file.str(); |
62 |
> |
this->file = file.str() + '.' + extension; |
63 |
|
} |
64 |
|
|
65 |
|
return file; |
84 |
|
name = ""; |
85 |
|
} |
86 |
|
|
87 |
+ |
string IndividualClient::extension = "pdf"; |
88 |
+ |
|
89 |
|
void IndividualClient::demunge(void) |
90 |
|
{ |
91 |
|
istringstream file(demunge(this->file)); |
132 |
|
{ |
133 |
|
capitalize(word, 2); |
134 |
|
} |
135 |
+ |
else if (word.length() > 1) |
136 |
+ |
{ |
137 |
+ |
if (!isalpha(word[0])) |
138 |
+ |
{ |
139 |
+ |
capitalize(word, 1); |
140 |
+ |
} |
141 |
+ |
} |
142 |
|
|
143 |
|
capitalize(word); |
144 |
|
|
167 |
|
{ |
168 |
|
string demunged; |
169 |
|
|
170 |
< |
for (unsigned index = 0; index < munged.length(); index++) |
170 |
> |
for (unsigned index = 0; index < munged.length() - extension.length() - 1; |
171 |
> |
index++) |
172 |
|
{ |
173 |
|
if (munged[index] == '_') |
174 |
|
{ |