Class IDNA2003


  • public final class IDNA2003
    extends java.lang.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 Detail

      • IDNA2003

        public IDNA2003()
    • Method Detail

      • startsWithPrefix

        private static boolean startsWithPrefix​(java.lang.StringBuffer src)
      • toASCIILower

        private static char toASCIILower​(char ch)
      • toASCIILower

        private static java.lang.StringBuffer toASCIILower​(java.lang.CharSequence src)
      • compareCaseInsensitiveASCII

        private static int compareCaseInsensitiveASCII​(java.lang.StringBuffer s1,
                                                       java.lang.StringBuffer s2)
      • getSeparatorIndex

        private static int getSeparatorIndex​(char[] src,
                                             int start,
                                             int limit)
      • isLDHChar

        private static boolean isLDHChar​(int ch)
      • isLabelSeparator

        private static boolean isLabelSeparator​(int ch)
        Ascertain if the given code point is a label separator as defined by the IDNA RFC
        Parameters:
        ch - The code point to be ascertained
        Returns:
        true if the char is a label separator