Class CMapToUnicode
This class represents a CMap file.
public class CMapToUnicode : AbstractCMap
- Inheritance
-
CMapToUnicode
- Inherited Members
Constructors
CMapToUnicode()
Creates a new instance of CMap.
public CMapToUnicode()
Fields
EmptyCMapToUnicodeMap
public static CMapToUnicode EmptyCMapToUnicodeMap
Field Value
Methods
CreateDirectMapping()
public virtual IntHashtable CreateDirectMapping()
Returns
CreateReverseMapping()
public virtual IDictionary<int, int?> CreateReverseMapping()
Returns
- IDictionary<int, int?>
GetCodeSpaceRanges()
Returns a list containing sequential pairs of code space beginning and endings: (begincodespacerange1, endcodespacerange1, begincodespacerange2, endcodespacerange1, ...)
public virtual IList<byte[]> GetCodeSpaceRanges()
Returns
GetCodes()
public virtual ICollection<int> GetCodes()
Returns
GetIdentity()
public static CMapToUnicode GetIdentity()
Returns
HasByteMappings()
This will tell if this cmap has any two byte mappings.
public virtual bool HasByteMappings()
Returns
- bool
true If there are any two byte mappings, false otherwise.
Lookup(byte[])
public virtual char[] Lookup(byte[] code)
Parameters
code
byte[]
Returns
- char[]
Lookup(byte[], int, int)
This will perform a lookup into the map.
public virtual char[] Lookup(byte[] code, int offset, int length)
Parameters
code
byte[]The code used to lookup.
offset
intThe offset into the byte array.
length
intThe length of the data we are getting.
Returns
- char[]
The string that matches the lookup.
Lookup(int)
public virtual char[] Lookup(int code)
Parameters
code
int
Returns
- char[]