Exctracting Parameter Types from Mangled C++ Name
<p>I'm trying to figure out the type of the parameters passed to a function. 
I want to do this using the mangled name of the function.</p>

<p>For example the following function has the parameters
<code>_ZN7MyClass3funEP14AnAwesomeClass</code></p>

<p><code>MyClass* this, AnAwesomeClass* p1</code></p>

<p>I now want to generate a function call to the toString member function of each passed parameter.</p>

<p>E.g.</p>

<p><code>_ZN7MyClass7toStringEv</code></p>

<p>and </p>

<p><code>_ZN14AnAwesomeClass7toStringEv</code></p>

<p>It is not very hard to demangle a name. But how do I extract the parameters and remangle them into a new function name?</p>

<p>Any idea on how to achieve this?</p>

<p>Thanks</p>
