Top Description Inners Fields Constructors Methods
com.ibm.icu.impl

public Class PropsVectors

extends Object
Class Inheritance
Imports
java.util.Arrays, .Comparator

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 and Inner Type Summary

Modifier and TypeClass and Description
public static interface
private static class
private static class

Field Summary

Modifier and TypeField and Description
private int
public static final int
public static final int
public static final int
public static final int
private boolean
public static final int
public static final int
private int
public static final int
private int
private int
private int[]
v

Constructor Summary

AccessConstructor and Description
public
PropsVectors(int numOfColumns)

Method Summary

Modifier and TypeMethod and Description
private boolean
areElementsSame(int index1, int[] target, int index2, int length)

public void
public IntTrie
private int
findRow(int rangeStart)

public int[]
public int
public int
public int[]
getRow(int rowIndex)

public int
getRowEnd(int rowIndex)

public int
getRowStart(int rowIndex)

public int
getValue(int c, int column)

public void
setValue(int start, int end, int column, int value, int mask)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

columnsback to summary
private int columns
ERROR_VALUE_CPback to summary
public static final int ERROR_VALUE_CP
FIRST_SPECIAL_CPback to summary
public static final int FIRST_SPECIAL_CP
INITIAL_ROWSback to summary
public static final int INITIAL_ROWS
INITIAL_VALUE_CPback to summary
public static final int INITIAL_VALUE_CP
isCompactedback to summary
private boolean isCompacted
MAX_CPback to summary
public static final int MAX_CP
MAX_ROWSback to summary
public static final int MAX_ROWS
maxRowsback to summary
private int maxRows
MEDIUM_ROWSback to summary
public static final int MEDIUM_ROWS
prevRowback to summary
private int prevRow
rowsback to summary
private int rows
vback to summary
private int[] v

Constructor Detail

PropsVectorsback to summary
public PropsVectors(int numOfColumns)

Method Detail

areElementsSameback to summary
private boolean areElementsSame(int index1, int[] target, int index2, int length)
compactback to summary
public void compact(PropsVectors.CompactHandler compactor)
compactToTrieWithRowIndexesback to summary
public IntTrie compactToTrieWithRowIndexes()
findRowback to summary
private int findRow(int rangeStart)
getCompactedArrayback to summary
public int[] getCompactedArray()
getCompactedColumnsback to summary
public int getCompactedColumns()
getCompactedRowsback to summary
public int getCompactedRows()
getRowback to summary
public int[] getRow(int rowIndex)
getRowEndback to summary
public int getRowEnd(int rowIndex)
getRowStartback to summary
public int getRowStart(int rowIndex)
getValueback to summary
public int getValue(int c, int column)
setValueback to summary
public void setValue(int start, int end, int column, int value, int mask)
com.ibm.icu.impl back to summary

public Interface PropsVectors.CompactHandler

Known Direct Implementers
com.ibm.icu.impl.PVecToTrieCompactHandler

Method Summary

Modifier and TypeMethod and Description
public void
public void
public void
setRowIndexForRange(int start, int end, int rowIndex)

public void
startRealValues(int rowIndex)

Method Detail

setRowIndexForErrorValueback to summary
public void setRowIndexForErrorValue(int rowIndex)
setRowIndexForInitialValueback to summary
public void setRowIndexForInitialValue(int rowIndex)
setRowIndexForRangeback to summary
public void setRowIndexForRange(int start, int end, int rowIndex)
startRealValuesback to summary
public void startRealValues(int rowIndex)
com.ibm.icu.impl back to summary

private Class PropsVectors.DefaultGetFoldedValue

extends Object
implements DataManipulate
Class Inheritance
All Implemented Interfaces
com.ibm.icu.impl.TrieBuilder.DataManipulate

Field Summary

Modifier and TypeField and Description
private IntTrieBuilder

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
getFoldedValue(int start, int offset)

Implements com.ibm.icu.impl.TrieBuilder.DataManipulate.getFoldedValue.

Build-time trie callback function, used with serialize().
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

builderback to summary
private IntTrieBuilder builder

Constructor Detail

DefaultGetFoldedValueback to summary
public DefaultGetFoldedValue(IntTrieBuilder inBuilder)

Method Detail

getFoldedValueback to summary
public int getFoldedValue(int start, int offset)

Implements com.ibm.icu.impl.TrieBuilder.DataManipulate.getFoldedValue.

Doc from com.ibm.icu.impl.TrieBuilder.DataManipulate.getFoldedValue.

Build-time trie callback function, used with serialize(). This function calculates a lead surrogate's value including a folding offset from the 1024 supplementary code points [start..start+1024[ . It is U+10000 <= start <= U+10fc00 and (start&0x3ff)==0. The folding offset is provided by the caller. It is offset=UTRIE_BMP_INDEX_LENGTH+n*UTRIE_SURROGATE_BLOCK_COUNT with n=0..1023. Instead of the offset itself, n can be stored in 10 bits - or fewer if it can be assumed that few lead surrogates have associated data. The returned value must be - not zero if and only if there is relevant data for the corresponding 1024 supplementary code points - such that UTrie.getFoldingOffset(UNewTrieGetFoldedValue(..., offset))==offset

Returns:int

a folded value, or 0 if there is no relevant data for the lead surrogate.

Annotations
@Override
com.ibm.icu.impl back to summary

private Class PropsVectors.DefaultGetFoldingOffset

extends Object
implements DataManipulate
Class Inheritance
All Implemented Interfaces
com.ibm.icu.impl.Trie.DataManipulate

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public int
getFoldingOffset(int
data value for a surrogate from the trie, including the folding offset
value
)

Implements com.ibm.icu.impl.Trie.DataManipulate.getFoldingOffset.

Called by com.ibm.icu.impl.Trie to extract from a lead surrogate's data the index array offset of the indexes for that lead surrogate.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DefaultGetFoldingOffsetback to summary
private DefaultGetFoldingOffset()

Method Detail

getFoldingOffsetback to summary
public int getFoldingOffset(int value)

Implements com.ibm.icu.impl.Trie.DataManipulate.getFoldingOffset.

Doc from com.ibm.icu.impl.Trie.DataManipulate.getFoldingOffset.

Called by com.ibm.icu.impl.Trie to extract from a lead surrogate's data the index array offset of the indexes for that lead surrogate.

Parameters
value:int

data value for a surrogate from the trie, including the folding offset

Returns:int

data offset or 0 if there is no data for the lead surrogate

Annotations
@Override