Package com.ibm.icu.impl
Class IDNA2003
- java.lang.Object
-
- com.ibm.icu.impl.IDNA2003
-
public final class IDNA2003 extends Object
IDNA2003 implementation code, moved out of com.ibm.icu.text.IDNA.java while extending that class to support IDNA2008/UTS #46 as well.
-
-
Constructor Summary
Constructors Constructor Description IDNA2003()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intcompare(String s1, String s2, int options)static StringBufferconvertIDNToASCII(String src, int options)static StringBufferconvertIDNToUnicode(String src, int options)static StringBufferconvertToASCII(UCharacterIterator src, int options)static StringBufferconvertToUnicode(UCharacterIterator src, int options)
-
-
-
Method Detail
-
convertToASCII
public static StringBuffer convertToASCII(UCharacterIterator src, int options) throws StringPrepParseException
- Throws:
StringPrepParseException
-
convertIDNToASCII
public static StringBuffer convertIDNToASCII(String src, int options) throws StringPrepParseException
- Throws:
StringPrepParseException
-
convertToUnicode
public static StringBuffer convertToUnicode(UCharacterIterator src, int options) throws StringPrepParseException
- Throws:
StringPrepParseException
-
convertIDNToUnicode
public static StringBuffer convertIDNToUnicode(String src, int options) throws StringPrepParseException
- Throws:
StringPrepParseException
-
compare
public static int compare(String s1, String s2, int options) throws StringPrepParseException
- Throws:
StringPrepParseException
-
-