FileDocCategorySizeDatePackage
Diacriticals.javaAPI DocMyID3 for Android2585Tue Oct 07 11:15:24 BST 2008org.cmc.music.clean

Diacriticals

public abstract class Diacriticals extends Object implements org.cmc.music.metadata.MusicMetadataConstants

Fields Summary
private static final Map
DIACRITICALS
Constructors Summary
Methods Summary
public static final java.lang.StringconvertDiacriticals(java.lang.String s)

	
	
		DIACRITICALS.put("", "a");
		DIACRITICALS.put("", "a");
		DIACRITICALS.put("", "a");
		DIACRITICALS.put("", "a");
		DIACRITICALS.put("", "a");
		DIACRITICALS.put("", "a");
		DIACRITICALS.put("", "ae");
		DIACRITICALS.put("", "c");
		DIACRITICALS.put("", "e");
		DIACRITICALS.put("", "e");
		DIACRITICALS.put("", "e");
		DIACRITICALS.put("", "e");
		DIACRITICALS.put("", "i");
		DIACRITICALS.put("", "i");
		DIACRITICALS.put("", "i");
		DIACRITICALS.put("", "i");
		DIACRITICALS.put("", "n");
		DIACRITICALS.put("", "o");
		DIACRITICALS.put("", "o");
		DIACRITICALS.put("", "o");
		DIACRITICALS.put("", "o");
		DIACRITICALS.put("", "o");
		DIACRITICALS.put("", "o");
		DIACRITICALS.put("", "u");
		DIACRITICALS.put("", "u");
		DIACRITICALS.put("", "u");
		DIACRITICALS.put("", "u");
		DIACRITICALS.put("", "y");
		DIACRITICALS.put("", "a");
		DIACRITICALS.put("", "a");
		DIACRITICALS.put("", "a");
		DIACRITICALS.put("", "a");
		DIACRITICALS.put("", "a");
		DIACRITICALS.put("", "a");
		DIACRITICALS.put("", "a");
		DIACRITICALS.put("", "ae");
		DIACRITICALS.put("", "c");
		DIACRITICALS.put("", "e");
		DIACRITICALS.put("", "e");
		DIACRITICALS.put("", "e");
		DIACRITICALS.put("", "e");
		DIACRITICALS.put("", "i");
		DIACRITICALS.put("", "i");
		DIACRITICALS.put("", "i");
		DIACRITICALS.put("", "i");
		DIACRITICALS.put("", "o");
		DIACRITICALS.put("", "n");
		DIACRITICALS.put("", "o");
		DIACRITICALS.put("", "o");
		DIACRITICALS.put("", "o");
		DIACRITICALS.put("", "o");
		DIACRITICALS.put("", "o");
		DIACRITICALS.put("", "o");
		DIACRITICALS.put("", "u");
		DIACRITICALS.put("", "u");
		DIACRITICALS.put("", "u");
		DIACRITICALS.put("", "u");
		DIACRITICALS.put("", "u");
	
		StringBuffer result = new StringBuffer();

		char chars[] = s.toCharArray();
		for (int i = 0; i < chars.length; i++)
		{
			char c = chars[i];
			String replacement = (String) DIACRITICALS.get("" + c);
			if (null != replacement)
				result.append(replacement);
			else
				result.append(c);
		}

		return result.toString();