Class UnicodeUtils


  • public class UnicodeUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      UnicodeUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int lengthUtf32​(java.lang.String in)  
      static int lengthUtf8​(java.lang.String text)  
      static java.lang.String substringUtf32​(java.lang.String in, int begin, int end)  
      static int[] UTF8CharIndex​(byte[] bytes)  
      static int UTF8CharLength​(byte ch)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UnicodeUtils

        public UnicodeUtils()
    • Method Detail

      • UTF8CharLength

        public static int UTF8CharLength​(byte ch)
      • UTF8CharIndex

        public static int[] UTF8CharIndex​(byte[] bytes)
      • lengthUtf8

        public static int lengthUtf8​(java.lang.String text)
      • lengthUtf32

        public static int lengthUtf32​(java.lang.String in)
      • substringUtf32

        public static java.lang.String substringUtf32​(java.lang.String in,
                                                      int begin,
                                                      int end)