org.egothor.text
Class Recode

java.lang.Object
  extended by org.egothor.text.Recode

public final class Recode
extends java.lang.Object

Recode ensures translation of UTF-8 letters (often with diacritics) to a plain ASCII format. Note: Currently it only supports European languages and their letters. Created on 3. b´┐Żezen 2007, 20:32

Author:
galambos

Constructor Summary
Recode()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
           
static int compare(java.lang.String a, java.lang.String b)
           
static int compare(java.lang.String a, java.lang.String b, java.lang.String mapping)
           
static int compareIgnoreCase(java.lang.String a, java.lang.String b)
           
static java.lang.String recode(java.lang.String str, java.lang.String mapping)
           
static char toAscii(char c)
           
static java.lang.String toAscii(java.lang.String str)
           
static java.lang.String toLowerCaseAscii(java.lang.String str)
           
static java.lang.String toUpperCaseAscii(java.lang.String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Recode

public Recode()
Method Detail

recode

public static final java.lang.String recode(java.lang.String str,
                                            java.lang.String mapping)

toAscii

public static final java.lang.String toAscii(java.lang.String str)

toAscii

public static final char toAscii(char c)

toLowerCaseAscii

public static final java.lang.String toLowerCaseAscii(java.lang.String str)

toUpperCaseAscii

public static final java.lang.String toUpperCaseAscii(java.lang.String str)

compare

public static final int compare(java.lang.String a,
                                java.lang.String b,
                                java.lang.String mapping)

compare

public static final int compare(java.lang.String a,
                                java.lang.String b)

compareIgnoreCase

public static final int compareIgnoreCase(java.lang.String a,
                                          java.lang.String b)

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)