Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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"  # Borland mangled name
  puts Unmangler.unmangle "?h@@YAXH@Z"      # MSVC mangled name

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

Name-only unmangle #1

  puts Unmangler.unmangle "@afunc$qxzcupi", :args => false
  puts Unmangler.unmangle "?h@@YAXH@Z",     :args => false

  # output:
  afunc
  h

Full unmangle #2

  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 *)

Name-only unmangle #2

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

  # output:
  Forms::TApplication::SetTitle
  AFXSetTopLevelFrame

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

About

Unmangles mangled C++/Delphi names

Resources

License

Languages

You can’t perform that action at this time.