Class CharacterTools


  • public class CharacterTools
    extends Object
    • Method Detail

      • decodeUtf8

        public static String decodeUtf8​(byte[] bytes,
                                        int offset,
                                        int length)
      • encodeUtf8

        public static byte[] encodeUtf8​(String string)
      • isHighSurrogate

        public static boolean isHighSurrogate​(char ch)
      • isLowSurrogate

        public static boolean isLowSurrogate​(char ch)
      • isSurrogatePair

        public static boolean isSurrogatePair​(char high,
                                              char low)
      • toCodePoint

        public static int toCodePoint​(char high,
                                      char low)
      • codePointAt

        public static int codePointAt​(CharSequence seq,
                                      int index)