Unmangler

Unmangles mangled C++/Delphi names

Installation

Add this line to your application's Gemfile:

gem 'unmangler'

And then execute:

$ bundle

Or install it yourself as:

$ gem install unmangler

Usage

Full unmangle #1

  puts Unmangler.unmangle "@afunc$qxzcupi"

  # output:
  afunc(const signed char, int *)

Name-only unmangle #1

  puts Unmangler.unmangle "@afunc$qxzcupi", :args => false

  # output:
  afunc

Full unmangle #2

  puts Unmangler.unmangle "@Forms@TApplication@SetTitle$qqrx17System@AnsiString"

  # output:
  __fastcall Forms::TApplication::SetTitle(const System::AnsiString)

Name-only unmangle #2

  puts Unmangler.unmangle "@Forms@TApplication@SetTitle$qqrx17System@AnsiString", :args => false

  # output:
  Forms::TApplication::SetTitle

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request