/** * Equivalent to {@code toUnicode(input, 0)}. * * @param input the ACE name * @return the Unicode name */ @DSGenerator( tool_name = "Doppelganger", tool_version = "2.0", generated_on = "2014-08-13 13:14:14.279 -0400", hash_original_method = "302C0CAE2DEDB050D34D6EDD9C47AC0E", hash_generated_method = "B7E8302F8D28F73D50D53B16A4033FC6") public static String toUnicode(String input) { return NativeIDN.toUnicode(input, 0); }
/** * Transform a Unicode String to ASCII Compatible Encoding String according to the algorithm * defined in <a href="http://www.ietf.org/rfc/rfc3490.txt">RFC 3490</a>. * * <p>If the transformation fails (because the input is not a valid IDN), an exception will be * thrown. * * <p>This method can handle either an individual label or an entire domain name. In the latter * case, the separators are: U+002E (full stop), U+3002 (ideographic full stop), U+FF0E (fullwidth * full stop), and U+FF61 (halfwidth ideographic full stop). All of these will become U+002E (full * stop) in the result. * * @param input the Unicode name * @param flags 0, {@code ALLOW_UNASSIGNED}, {@code USE_STD3_ASCII_RULES}, or {@code * ALLOW_UNASSIGNED | USE_STD3_ASCII_RULES} * @return the ACE name * @throws IllegalArgumentException if {@code input} does not conform to <a * href="http://www.ietf.org/rfc/rfc3490.txt">RFC 3490</a> */ @DSGenerator( tool_name = "Doppelganger", tool_version = "2.0", generated_on = "2014-08-13 13:14:14.274 -0400", hash_original_method = "4681265216BD04726C8DE86640D9EBFD", hash_generated_method = "96212B4C3BFA1663294F6F4C683E643F") public static String toASCII(String input, int flags) { return NativeIDN.toASCII(input, flags); }
/** * Translates a string from ASCII Compatible Encoding (ACE) to Unicode according to the algorithm * defined in <a href="http://www.ietf.org/rfc/rfc3490.txt">RFC 3490</a>. * * <p>Unlike {@code toASCII}, this transformation cannot fail. * * <p>This method can handle either an individual label or an entire domain name. In the latter * case, the separators are: U+002E (full stop), U+3002 (ideographic full stop), U+FF0E (fullwidth * full stop), and U+FF61 (halfwidth ideographic full stop). * * @param input the ACE name * @return the Unicode name * @param flags 0, {@code ALLOW_UNASSIGNED}, {@code USE_STD3_ASCII_RULES}, or {@code * ALLOW_UNASSIGNED | USE_STD3_ASCII_RULES} */ @DSGenerator( tool_name = "Doppelganger", tool_version = "2.0", generated_on = "2014-08-13 13:14:14.277 -0400", hash_original_method = "EAFB4F2E5D0CAE88B21C9888C4D03063", hash_generated_method = "3FBD99303302DF1C752B56A752C7E980") public static String toUnicode(String input, int flags) { return NativeIDN.toUnicode(input, flags); }