| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final int | |
| private int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv | CIDRange(int
start value of COD range from, int end value of CID range to, int unicode start value unicode, int byte length of CID values codeLength)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the given range was extendedstart value of the new range newFrom, int end value of the new range newTo, int start CID value of the range newCid, int byte length of CIDs length)Check if the given values represent a consecutive range of the given range. |
| public int | |
| public int | Returns: corresponding CID, or -1 if the character is out of rangeUnicode character bytes)Maps the given Unicode character to the corresponding CID in this range. |
| public int | Returns: corresponding CID, or -1 if the character is out of rangeUnicode character code, int origin byte length of the code length)Maps the given Unicode character to the corresponding CID in this range. |
| public int | Returns: corresponding Unicode character, or -1 if the CID is out of rangeCID code)Maps the given CID to the corresponding Unicode character in this range. |
| codeLength | back to summary |
|---|---|
| private final int codeLength | |
| from | back to summary |
|---|---|
| private final int from | |
| to | back to summary |
|---|---|
| private int to | |
| unicode | back to summary |
|---|---|
| private final int unicode | |
| CIDRange | back to summary |
|---|---|
| pack-priv CIDRange(int from, int to, int unicode, int codeLength) Constructor.
| |
| extend | back to summary |
|---|---|
| public boolean extend(int newFrom, int newTo, int newCid, int length) Check if the given values represent a consecutive range of the given range. If so, extend the given range instead of creating a new one.
| |
| getCodeLength | back to summary |
|---|---|
| public int getCodeLength() Returns the byte length of the codes of the CID range.
| |
| map | back to summary |
|---|---|
| public int map(byte[] bytes) Maps the given Unicode character to the corresponding CID in this range.
| |
| map | back to summary |
|---|---|
| public int map(int code, int length) Maps the given Unicode character to the corresponding CID in this range.
| |
| unmap | back to summary |
|---|---|
| public int unmap(int code) Maps the given CID to the corresponding Unicode character in this range.
| |