/[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 2398 by torben, Fri Feb 27 10:37:08 2015 UTC revision 2399 by torben, Fri Feb 27 10:38:50 2015 UTC
# Line 73  public class AddressUtils { Line 73  public class AddressUtils {
73                          i++;                          i++;
74                  }                  }
75                                    
76                  //special case - hvis strengen ender med ' nr' skal ' nr' fjernes  
77                  result.vej = delStreng.toString().toLowerCase().trim();                  result.vej = delStreng.toString().toLowerCase().trim();
78                  if ( result.vej.endsWith(".") || result.vej.endsWith(",")) {                  if ( result.vej.endsWith(".") || result.vej.endsWith(",")) {
79                          result.vej =  result.vej.substring(0, result.vej.length() - 1);                          result.vej =  result.vej.substring(0, result.vej.length() - 1);
80                  }                                        result.vej = result.vej.trim();
81                    }
82                    
83                    //special case - hvis strengen ender med ' nr' skal ' nr' fjernes
84                  if ( result.vej.endsWith(" nr")) {                  if ( result.vej.endsWith(" nr")) {
85                          result.vej =  result.vej.substring(0, result.vej.length() - 3);                          result.vej =  result.vej.substring(0, result.vej.length() - 3);
86                  }                  }

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

  ViewVC Help
Powered by ViewVC 1.1.20