Package org.joni

Class CodeRangeBuffer


  • public final class CodeRangeBuffer
    extends java.lang.Object
    • Field Detail

      • INIT_MULTI_BYTE_RANGE_SIZE

        private static final int INIT_MULTI_BYTE_RANGE_SIZE
        See Also:
        Constant Field Values
      • p

        int[] p
      • used

        int used
    • Constructor Detail

      • CodeRangeBuffer

        public CodeRangeBuffer​(int[] ranges)
      • CodeRangeBuffer

        public CodeRangeBuffer()
    • Method Detail

      • getCodeRange

        public int[] getCodeRange()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • rangeNumToString

        private static java.lang.String rangeNumToString​(int num)
      • expand

        public void expand​(int low)
      • ensureSize

        public void ensureSize​(int size)
      • moveRight

        private void moveRight​(int from,
                               int to,
                               int n)
      • moveLeft

        protected void moveLeft​(int from,
                                int to,
                                int n)
      • moveLeftAndReduce

        private void moveLeftAndReduce​(int from,
                                       int to)
      • writeCodePoint

        public void writeCodePoint​(int pos,
                                   int b)
      • clone

        public CodeRangeBuffer clone()
        Overrides:
        clone in class java.lang.Object