MCPcopy
hub / github.com/mitmproxy/mitmproxy / ASWBXMLCodePage

Class ASWBXMLCodePage

mitmproxy/contrib/wbxml/ASWBXMLCodePage.py:30–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28THE SOFTWARE.
29'''
30class ASWBXMLCodePage:
31 def __init__(self):
32 self.namespace = ""
33 self.xmlns = ""
34 self.tokenLookup = {}
35 self.tagLookup = {}
36
37 def addToken(self, token, tag):
38 self.tokenLookup[token] = tag
39 self.tagLookup[tag] = token
40
41 def getToken(self, tag):
42 if tag in self.tagLookup:
43 return self.tagLookup[tag]
44 return 0xFF
45
46 def getTag(self, token):
47 if token in self.tokenLookup:
48 return self.tokenLookup[token]
49 return None
50
51 def __repr__(self):
52 return str(self.tokenLookup)

Callers 1

__init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…