72 |
delStreng.append( indAdresse.charAt(i) ); |
delStreng.append( indAdresse.charAt(i) ); |
73 |
i++; |
i++; |
74 |
} |
} |
75 |
result.vej = WordUtils.capitalize( delStreng.toString().trim() ); |
|
76 |
|
|
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 |
|
result.vej = result.vej.trim(); |
81 |
|
} |
82 |
|
|
83 |
|
//special case - hvis strengen ender med ' nr' skal ' nr' fjernes |
84 |
|
if ( result.vej.endsWith(" nr")) { |
85 |
|
result.vej = result.vej.substring(0, result.vej.length() - 3); |
86 |
|
} |
87 |
|
|
88 |
|
result.vej = WordUtils.capitalize( result.vej.trim() ); |
89 |
|
|
90 |
|
|
91 |
|
|