Unmangles mangled C++/Delphi names
Add this line to your application's Gemfile:
gem 'unmangler'
And then execute:
$ bundle
Or install it yourself as:
$ gem install unmangler
puts Unmangler.unmangle "@afunc$qxzcupi" # Borland mangled name
puts Unmangler.unmangle "?h@@YAXH@Z" # MSVC mangled name
# output:
afunc(const signed char, int *)
void __cdecl h(int)
puts Unmangler.unmangle "@afunc$qxzcupi", :args => false
puts Unmangler.unmangle "?h@@YAXH@Z", :args => false
# output:
afunc
h
puts Unmangler.unmangle "@Forms@TApplication@SetTitle$qqrx17System@AnsiString"
puts Unmangler.unmangle "?AFXSetTopLevelFrame@@YAXPAVCFrameWnd@@@Z"
# output:
__fastcall Forms::TApplication::SetTitle(const System::AnsiString)
void __cdecl AFXSetTopLevelFrame(class CFrameWnd *)
puts Unmangler.unmangle "@Forms@TApplication@SetTitle$qqrx17System@AnsiString", :args => false
puts Unmangler.unmangle "?AFXSetTopLevelFrame@@YAXPAVCFrameWnd@@@Z", :args => false
# output:
Forms::TApplication::SetTitle
AFXSetTopLevelFrame
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request