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) {
for (int i = 0; i < buffer.length(); i++) {
switch (buffer.charAt(i)) {
case 'ä':
case 'á':
case 'ä':
case 'á':
{
buffer.setCharAt(i, 'a');
break;
}
case 'ë':
case 'é':
case 'ë':
case 'é':
{
buffer.setCharAt(i, 'e');
break;
}
case 'ü':
case 'ú':
case 'ü':
case 'ú':
{
buffer.setCharAt(i, 'u');
break;
}
case 'ï':
case 'ï':
case 'i':
{
buffer.setCharAt(i, 'i');
break;
}
case 'ö':
case 'ó':
case 'ö':
case 'ó':
{
buffer.setCharAt(i, 'o');
break;
@ -391,7 +391,7 @@ public class DutchStemmer {
case 'i':
case 'u':
case 'y':
case 'è':
case 'è':
{
return true;
}