Class UTF32ToUTF8

java.lang.Object
org.apache.lucene.util.automaton.UTF32ToUTF8

public final class UTF32ToUTF8 extends Object
Converts UTF-32 automata to the equivalent UTF-8 representation.
  • Field Details

  • Constructor Details

    • UTF32ToUTF8

      public UTF32ToUTF8()
      Sole constructor.
  • Method Details

    • convertOneEdge

      void convertOneEdge(int start, int end, int startCodePoint, int endCodePoint)
    • build

      private void build(int start, int end, UTF32ToUTF8.UTF8Sequence startUTF8, UTF32ToUTF8.UTF8Sequence endUTF8, int upto)
    • start

      private void start(int start, int end, UTF32ToUTF8.UTF8Sequence startUTF8, int upto, boolean doAll)
    • end

      private void end(int start, int end, UTF32ToUTF8.UTF8Sequence endUTF8, int upto, boolean doAll)
    • all

      private void all(int start, int end, int startCode, int endCode, int left)
    • convert

      public Automaton convert(Automaton utf32)
      Converts an incoming utf32 automaton to an equivalent utf8 one. The incoming automaton need not be deterministic. Note that the returned automaton will not in general be deterministic, so you must determinize it if that's needed.