MCPcopy Create free account
hub / github.com/WebAssembly/wabt / Mangle

Function Mangle

test/run-spec-wasm2c.py:103–105  ·  view source on GitHub ↗
(match)

Source from the content-addressed store, hash-verified

101
102def MangleName(s):
103 def Mangle(match):
104 s = match.group(0)
105 return b'0x%02X' % s[0]
106
107 # escape underscores at beginning and end
108 s = re.sub(b'((^_)|(_$))', Mangle, s.encode('utf-8'))

Callers 2

MangleNameMethod · 0.85
MangleModuleNameMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected