class CIDRange
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
cid |
private char |
from |
private char |
to |
Constructor and Description |
---|
CIDRange(char from,
char to,
int cid) |
Modifier and Type | Method and Description |
---|---|
boolean |
extend(char newFrom,
char newTo,
int newCid)
Check if the given values represent a consecutive range of the given range.
|
int |
map(char ch)
Maps the given Unicode character to the corresponding CID in this range.
|
int |
unmap(int code)
Maps the given CID to the corresponding Unicode character in this range.
|
public int map(char ch)
ch
- Unicode characterpublic int unmap(int code)
code
- CIDpublic boolean extend(char newFrom, char newTo, int newCid)
newFrom
- start value of the new rangenewTo
- end value of the new rangenewCid
- start CID value of the range