ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/trunk/VTBFileUtil2/IndividualClient.cxx
(Generate patch)

Comparing trunk/VTBFileUtil2/IndividualClient.cxx (file contents):
Revision 267 by douglas, 2003-08-18T15:25:29-07:00 vs.
Revision 271 by douglas, 2003-08-19T22:49:34-07:00

# Line 2 | Line 2
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  
# Line 59 | Line 59 | string IndividualClient::getFile(void)
59                  }
60                  while (name.good());
61  
62 <                this->file = file.str();
62 >                this->file = file.str() + '.' + extension;
63          }
64  
65          return file;
# Line 84 | Line 84 | void IndividualClient::setFile(const str
84          name = "";
85   }
86  
87 + string IndividualClient::extension = "pdf";
88 +
89   void IndividualClient::demunge(void)
90   {
91          istringstream file(demunge(this->file));
# Line 130 | Line 132 | void IndividualClient::demunge(void)
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  
# Line 158 | Line 167 | string IndividualClient::demunge(const s
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                  {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines