MCPcopy Index your code
hub / github.com/clips/pattern / get_cmap

Method get_cmap

pattern/web/pdf/cmapdb.py:256–267  ·  view source on GitHub ↗
(klass, name)

Source from the content-addressed store, hash-verified

254
255 @classmethod
256 def get_cmap(klass, name):
257 if name == 'Identity-H':
258 return IdentityCMap(False)
259 elif name == 'Identity-V':
260 return IdentityCMap(True)
261 try:
262 return klass._cmap_cache[name]
263 except KeyError:
264 pass
265 data = klass._load_data(name)
266 klass._cmap_cache[name] = cmap = PyCMap(name, data)
267 return cmap
268
269 @classmethod
270 def get_unicode_map(klass, name, vertical=False):

Callers 2

do_keywordMethod · 0.45
__init__Method · 0.45

Calls 3

IdentityCMapClass · 0.85
PyCMapClass · 0.85
_load_dataMethod · 0.80

Tested by

no test coverage detected