- java.lang.Object
-
- org.apache.lucene.util.automaton.UTF32ToUTF8
-
public final class UTF32ToUTF8 extends java.lang.Object
Converts UTF-32 automata to the equivalent UTF-8 representation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
UTF32ToUTF8.UTF8Byte
private static class
UTF32ToUTF8.UTF8Sequence
-
Field Summary
Fields Modifier and Type Field Description private static int[]
endCodes
private UTF32ToUTF8.UTF8Sequence
endUTF8
(package private) static int[]
MASKS
private static int[]
startCodes
private UTF32ToUTF8.UTF8Sequence
startUTF8
private UTF32ToUTF8.UTF8Sequence
tmpUTF8a
private UTF32ToUTF8.UTF8Sequence
tmpUTF8b
(package private) Automaton.Builder
utf8
-
Constructor Summary
Constructors Constructor Description UTF32ToUTF8()
Sole constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
all(int start, int end, int startCode, int endCode, int left)
private void
build(int start, int end, UTF32ToUTF8.UTF8Sequence startUTF8, UTF32ToUTF8.UTF8Sequence endUTF8, int upto)
Automaton
convert(Automaton utf32)
Converts an incoming utf32 automaton to an equivalent utf8 one.(package private) void
convertOneEdge(int start, int end, int startCodePoint, int endCodePoint)
private void
end(int start, int end, UTF32ToUTF8.UTF8Sequence endUTF8, int upto, boolean doAll)
private void
start(int start, int end, UTF32ToUTF8.UTF8Sequence startUTF8, int upto, boolean doAll)
-
-
-
Field Detail
-
startCodes
private static final int[] startCodes
-
endCodes
private static final int[] endCodes
-
MASKS
static int[] MASKS
-
startUTF8
private final UTF32ToUTF8.UTF8Sequence startUTF8
-
endUTF8
private final UTF32ToUTF8.UTF8Sequence endUTF8
-
tmpUTF8a
private final UTF32ToUTF8.UTF8Sequence tmpUTF8a
-
tmpUTF8b
private final UTF32ToUTF8.UTF8Sequence tmpUTF8b
-
utf8
Automaton.Builder utf8
-
-
Method Detail
-
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)
-
-