/[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 2416 by torben, Fri Feb 27 15:42:08 2015 UTC revision 2417 by torben, Sun Mar 1 16:47:34 2015 UTC
# Line 174  public class AddressUtils { Line 174  public class AddressUtils {
174                                                    
175                          if (current != 'Æ'&& current != 'Ø' && current != 'Å') {                          if (current != 'Æ'&& current != 'Ø' && current != 'Å') {
176                                  if ( (i+1 == len ||                                  if ( (i+1 == len ||
177                                                  (Character.isAlphabetic(indAdresse.charAt(i+1)) == false                                                  (Character.isAlphabetic(indAdresse.charAt(i+1) ) == false
178                                                  /*&& indAdresse.charAt(i+1) != '.'*/)                                                  /*&& indAdresse.charAt(i+1) != '.'*/
179                                                    
180                                                    && checkCo(indAdresse,i) == false // Fra sortér C/O
181                                                                    )
182                                                  )                                                  )
183                                          ) {                                          ) {
184                                          result.litra = "" + current;                                          result.litra = "" + current;
# Line 279  public class AddressUtils { Line 282  public class AddressUtils {
282                  return result;                  return result;
283          }          }
284                    
285            public static boolean checkCo(String addr, int pos) {
286                    
287                    if ( StringUtils.substring(addr, pos, pos+3).equalsIgnoreCase("C/O") )
288                            return true;
289                    
290                    return false;
291    
292            }
293            
294  }  }
295    
296    

Legend:
Removed from v.2416  
changed lines
  Added in v.2417

  ViewVC Help
Powered by ViewVC 1.1.20