|
From: Mark D. <mar...@ic...> - 2008-07-28 09:22:19
|
I propose that we make the PunyCode class public, since it is useful for
more than IDN. There are just two public methods:
/**
* Converts Punycode to Unicode.
* The Unicode string will be at most as long as the Punycode string.
*
* @param src
* @param caseFlags
* @return
* @throws ParseException
* @draft
*/
/**
* Converts Unicode to Punycode.
* The input string must not contain single, unpaired surrogates.
* The output will be represented as an array of ASCII code points.
*
* @param src
* @param caseFlags
* @return
* @throws ParseException
* @draft
*/
public static StringBuffer encode(StringBuffer src, boolean[] caseFlags)
throws StringPrepParseException{
Mark
|