convert to utf-8

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@151001 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Daniel Naber 2004-08-17 21:56:53 +00:00
parent a88d3719fb
commit 22a19287ea
1 changed files with 12 additions and 12 deletions

View File

@ -258,37 +258,37 @@ public class DutchStemmer {
} }
/** /**
* Substitute ä, ë, ï, ö, ü, á , é, í, ó, ú * Substitute ä, ë, ï, ö, ü, á , é, í, ó, ú
*/ */
private void substitute(StringBuffer buffer) { private void substitute(StringBuffer buffer) {
for (int i = 0; i < buffer.length(); i++) { for (int i = 0; i < buffer.length(); i++) {
switch (buffer.charAt(i)) { switch (buffer.charAt(i)) {
case 'ä': case 'ä':
case 'á': case 'á':
{ {
buffer.setCharAt(i, 'a'); buffer.setCharAt(i, 'a');
break; break;
} }
case 'ë': case 'ë':
case 'é': case 'é':
{ {
buffer.setCharAt(i, 'e'); buffer.setCharAt(i, 'e');
break; break;
} }
case 'ü': case 'ü':
case 'ú': case 'ú':
{ {
buffer.setCharAt(i, 'u'); buffer.setCharAt(i, 'u');
break; break;
} }
case 'ï': case 'ï':
case 'i': case 'i':
{ {
buffer.setCharAt(i, 'i'); buffer.setCharAt(i, 'i');
break; break;
} }
case 'ö': case 'ö':
case 'ó': case 'ó':
{ {
buffer.setCharAt(i, 'o'); buffer.setCharAt(i, 'o');
break; break;
@ -391,7 +391,7 @@ public class DutchStemmer {
case 'i': case 'i':
case 'u': case 'u':
case 'y': case 'y':
case 'è': case 'è':
{ {
return true; return true;
} }
@ -403,4 +403,4 @@ public class DutchStemmer {
_stemDict = dict; _stemDict = dict;
} }
} }