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

Method get_unicode_map

pattern/web/pdf/cmapdb.py:270–277  ·  view source on GitHub ↗
(klass, name, vertical=False)

Source from the content-addressed store, hash-verified

268
269 @classmethod
270 def get_unicode_map(klass, name, vertical=False):
271 try:
272 return klass._umap_cache[name][vertical]
273 except KeyError:
274 pass
275 data = klass._load_data('to-unicode-%s' % name)
276 klass._umap_cache[name] = umaps = [PyUnicodeMap(name, data, v) for v in (False, True)]
277 return umaps[vertical]
278
279
280## CMapParser

Callers 1

__init__Method · 0.80

Calls 2

PyUnicodeMapClass · 0.85
_load_dataMethod · 0.80

Tested by

no test coverage detected