Package com.ibm.icu.impl
Class PropsVectors
- java.lang.Object
-
- com.ibm.icu.impl.PropsVectors
-
public class PropsVectors extends java.lang.Object
Unicode Properties Vectors associated with code point ranges. Rows of primitive integers in a contiguous array store the range limits and the properties vectors. In each row, row[0] contains the start code point and row[1] contains the limit code point, which is the start of the next range. Initially, there is only one range [0..0x110000] with values 0. It would be possible to store only one range boundary per row, but self-contained rows allow to later sort them by contents.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
PropsVectors.CompactHandler
private static class
PropsVectors.DefaultGetFoldedValue
private static class
PropsVectors.DefaultGetFoldingOffset
-
Field Summary
Fields Modifier and Type Field Description private int
columns
static int
ERROR_VALUE_CP
static int
FIRST_SPECIAL_CP
static int
INITIAL_ROWS
static int
INITIAL_VALUE_CP
private boolean
isCompacted
static int
MAX_CP
static int
MAX_ROWS
private int
maxRows
static int
MEDIUM_ROWS
private int
prevRow
private int
rows
private int[]
v
-
Constructor Summary
Constructors Constructor Description PropsVectors(int numOfColumns)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private boolean
areElementsSame(int index1, int[] target, int index2, int length)
void
compact(PropsVectors.CompactHandler compactor)
IntTrie
compactToTrieWithRowIndexes()
private int
findRow(int rangeStart)
int[]
getCompactedArray()
int
getCompactedColumns()
int
getCompactedRows()
int[]
getRow(int rowIndex)
int
getRowEnd(int rowIndex)
int
getRowStart(int rowIndex)
int
getValue(int c, int column)
void
setValue(int start, int end, int column, int value, int mask)
-
-
-
Field Detail
-
v
private int[] v
-
columns
private int columns
-
maxRows
private int maxRows
-
rows
private int rows
-
prevRow
private int prevRow
-
isCompacted
private boolean isCompacted
-
FIRST_SPECIAL_CP
public static final int FIRST_SPECIAL_CP
- See Also:
- Constant Field Values
-
INITIAL_VALUE_CP
public static final int INITIAL_VALUE_CP
- See Also:
- Constant Field Values
-
ERROR_VALUE_CP
public static final int ERROR_VALUE_CP
- See Also:
- Constant Field Values
-
MAX_CP
public static final int MAX_CP
- See Also:
- Constant Field Values
-
INITIAL_ROWS
public static final int INITIAL_ROWS
- See Also:
- Constant Field Values
-
MEDIUM_ROWS
public static final int MEDIUM_ROWS
- See Also:
- Constant Field Values
-
MAX_ROWS
public static final int MAX_ROWS
- See Also:
- Constant Field Values
-
-
Method Detail
-
areElementsSame
private boolean areElementsSame(int index1, int[] target, int index2, int length)
-
findRow
private int findRow(int rangeStart)
-
setValue
public void setValue(int start, int end, int column, int value, int mask)
-
getValue
public int getValue(int c, int column)
-
getRow
public int[] getRow(int rowIndex)
-
getRowStart
public int getRowStart(int rowIndex)
-
getRowEnd
public int getRowEnd(int rowIndex)
-
compact
public void compact(PropsVectors.CompactHandler compactor)
-
getCompactedArray
public int[] getCompactedArray()
-
getCompactedRows
public int getCompactedRows()
-
getCompactedColumns
public int getCompactedColumns()
-
compactToTrieWithRowIndexes
public IntTrie compactToTrieWithRowIndexes()
-
-