Class CharsetBOCU1.CharsetDecoderBOCU

    • Field Detail

      • byteIndex

        int byteIndex
      • sourceIndex

        int sourceIndex
      • nextSourceIndex

        int nextSourceIndex
      • prev

        int prev
      • c

        int c
      • diff

        int diff
      • count

        int count
      • bytes

        byte[] bytes
      • cr

        java.nio.charset.CoderResult cr
      • LabelLoop

        private boolean LabelLoop
      • afterTrail

        private boolean afterTrail
      • labelType

        private int labelType
    • Constructor Detail

      • CharsetDecoderBOCU

        public CharsetDecoderBOCU​(CharsetICU cs)
    • Method Detail

      • decodeBocu1LeadByte

        private int decodeBocu1LeadByte​(int b)
        Function for BOCU-1 decoder; handles multi-byte lead bytes.
        Parameters:
        b - lead byte; BOCU1_MIN<=b
        Returns:
        (diff<<2)|count
      • decodeBocu1TrailByte

        private int decodeBocu1TrailByte​(int countValue,
                                         int b)
        Function for BOCU-1 decoder; handles multi-byte trail bytes.
        Parameters:
        count - number of remaining trail bytes including this one
        b - trail byte
        Returns:
        new delta for diff including b - <0 indicates an error
        See Also:
        decodeBocu1
      • decodeLoop

        protected java.nio.charset.CoderResult decodeLoop​(java.nio.ByteBuffer source,
                                                          java.nio.CharBuffer target,
                                                          java.nio.IntBuffer offsets,
                                                          boolean flush)
        Specified by:
        decodeLoop in class CharsetDecoderICU
      • fastSingle

        private int fastSingle​(java.nio.ByteBuffer source,
                               java.nio.CharBuffer target,
                               java.nio.IntBuffer offsets)
      • getTrail

        private int getTrail​(java.nio.ByteBuffer source,
                             java.nio.CharBuffer target,
                             java.nio.IntBuffer offsets)
      • afterGetTrail

        private int afterGetTrail​(java.nio.ByteBuffer source,
                                  java.nio.CharBuffer target,
                                  java.nio.IntBuffer offsets)
      • endLoop

        private void endLoop​(java.nio.ByteBuffer source,
                             java.nio.CharBuffer target,
                             java.nio.IntBuffer offsets)