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

Method decode

pattern/web/pdf/cmapdb.py:59–72  ·  view source on GitHub ↗
(self, code)

Source from the content-addressed store, hash-verified

57 return
58
59 def decode(self, code):
60 if self.debug:
61 print >>sys.stderr, 'decode: %r, %r' % (self, code)
62 d = self.code2cid
63 for c in code:
64 c = ord(c)
65 if c in d:
66 d = d[c]
67 if isinstance(d, int):
68 yield d
69 d = self.code2cid
70 else:
71 d = self.code2cid
72 return
73
74 def dump(self, out=sys.stdout, code2cid=None, code=None):
75 if code2cid is None:

Callers 15

decode_stringFunction · 0.45
decode_stringFunction · 0.45
decode_stringFunction · 0.45
decode_utf8Function · 0.45
_decodeFunction · 0.45
render_stringMethod · 0.45
_urljoinFunction · 0.45
_normalize_attributesMethod · 0.45
unknown_starttagMethod · 0.45
popMethod · 0.45

Calls

no outgoing calls

Tested by 4

test_parseMethod · 0.36
test_parseMethod · 0.36
test_parseMethod · 0.36
test_parseMethod · 0.36