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 271 by douglas, 2003-08-19T22:49:34-07:00 vs.
Revision 273 by douglas, 2003-08-20T23:29:24-07:00

# Line 2 | Line 2
2   //
3   // Douglas Thrift
4   //
5 < // $Id: IndividualClient.cxx,v 1.5 2003/08/20 05:49:34 douglas Exp $
5 > // $Id: IndividualClient.cxx,v 1.6 2003/08/21 06:29:24 douglas Exp $
6  
7   #include "IndividualClient.h"
8  
# Line 103 | Line 103 | void IndividualClient::demunge(void)
103                  file >> word;
104                  file.get();
105  
106 <                if (word.length() == 1 || word == "jr" || word == "sr" || word == "dr"
107 <                        || word == "mr" || word == "ms" || word == "mrs")
106 >                if (word.length() == 1)
107 >                {
108 >                        if (isalpha(word[0])) word += '.';
109 >                }
110 >                else if (word == "jr" || word == "sr" || word == "dr" || word == "mr"
111 >                        || word == "ms" || word == "mrs")
112                  {
113                          word += '.';
114                  }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines