MCPcopy
hub / github.com/keystone-engine/keypatch / asm_normalize

Method asm_normalize

keypatch.py:224–229  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

222 # remove comment at the end of assembly code
223 @staticmethod
224 def asm_normalize(text):
225 text = ' '.join(text.split())
226 if text.rfind(';') != -1:
227 return text[:text.rfind(';')].strip()
228
229 return text.strip()
230
231 @staticmethod
232 # check if input address is valid

Callers 2

ida_get_disasm_rangeMethod · 0.95
ida_get_disasmMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected