All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.mehtrick.bjoern.parser.replacer.DefaultUmloudReplacer Maven / Gradle / Ivy

There is a newer version: 1.2.6
Show newest version
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);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy