de.mehtrick.bjoern.parser.replacer.DefaultUmloudReplacer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bjoern-parser Show documentation
Show all versions of bjoern-parser Show documentation
Simple bdd-java-framework for universal unit testing
package de.mehtrick.bjoern.parser.replacer;
import java.util.HashMap;
import java.util.Map;
class DefaultUmloudReplacer {
protected static String replace(String string) {
Map umlaute = new HashMap<>();
umlaute.put("ä", "ae");
umlaute.put("ö", "oe");
umlaute.put("ü", "ue");
umlaute.put("ß", "ss");
umlaute.put("Ä", "Ae");
umlaute.put("Ö", "Oe");
umlaute.put("Ü", "Ue");
return StringReplacer.replaceWithValues(string, umlaute);
}
}