/[projects]/dao/DaoAdresseService/src/dk/daoas/daoadresseservice/AddressUtils.java
ViewVC logotype

Diff of /dao/DaoAdresseService/src/dk/daoas/daoadresseservice/AddressUtils.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2397 by torben, Thu Feb 26 14:43:20 2015 UTC revision 2398 by torben, Fri Feb 27 10:37:08 2015 UTC
# Line 72  public class AddressUtils { Line 72  public class AddressUtils {
72                          delStreng.append( indAdresse.charAt(i) );                          delStreng.append( indAdresse.charAt(i) );
73                          i++;                          i++;
74                  }                  }
75                  result.vej = WordUtils.capitalize( delStreng.toString().trim() );                  
76                    //special case - hvis strengen ender med ' nr' skal ' nr' fjernes
77                    result.vej = delStreng.toString().toLowerCase().trim();
78                    if ( result.vej.endsWith(".") || result.vej.endsWith(",")) {
79                            result.vej =  result.vej.substring(0, result.vej.length() - 1);
80                    }              
81                    if ( result.vej.endsWith(" nr")) {
82                            result.vej =  result.vej.substring(0, result.vej.length() - 3);
83                    }
84                    
85                    result.vej = WordUtils.capitalize( result.vej.trim() );
86                                    
87    
88    

Legend:
Removed from v.2397  
changed lines
  Added in v.2398

  ViewVC Help
Powered by ViewVC 1.1.20