If you want to expand the names, for example. for display, you can create a channel that runs the C ++ filter.
def demangle(names): args = ['c++filt'] args.extend(names) pipe = subprocess.Popen(args, stdin=subprocess.PIPE, stdout=subprocess.PIPE) stdout, _ = pipe.communicate() demangled = stdout.split("\n")
You can specify arguments for a C ++ filter if you need to use a specific demangling method.
Interlacing a name is much more complicated and probably impossible to do without knowing the definition of the types used.
source share